diff --git a/plugins/hirakata/hirakata.plugin.zsh b/plugins/hirakata/hirakata.plugin.zsh index 7fb34e78..cf2e8a63 100644 --- a/plugins/hirakata/hirakata.plugin.zsh +++ b/plugins/hirakata/hirakata.plugin.zsh @@ -1,5 +1,6 @@ -p="$ZSH_CUSTOM/plugins/hirakata/" -f=$(cat $p"files/hk_symbols.txt") +p="$ZSH/plugins/hirakata/" +fh=$(cat $p"files/hira.txt") +fk=$(cat $p"files/kata.txt") function hirakata() { random_symbol=$(echo "$fh\n$fk" | shuf -n1) @@ -22,7 +23,7 @@ function hirakata() { symbol=$(echo $random_symbol | cut -d ' ' -f1) sound=$(echo $random_symbol | cut -d ' ' -f2) - (mpg321 -q $HK/sounds/$sound & ) > /dev/null 2>&1 + (mpg321 -q $p/sounds/$sound & ) > /dev/null 2>&1 echo -n $symbol if [ $romaji -eq 1 ]; then diff --git a/themes/mawuena.zsh-theme b/themes/mawuena.zsh-theme index f095c1aa..69db813a 100644 --- a/themes/mawuena.zsh-theme +++ b/themes/mawuena.zsh-theme @@ -83,7 +83,7 @@ CRUNCH_PROMPT="$CRUNCH_BRACKET_COLOR➭ " # Put it all together! precmd() { -PROMPT="${CL_BROWN}%(!.#.❆)%{$reset_color%} $CRUNCH_DIR_$(hirakata)$CRUNCH_PROMPT%{$reset_color%}" +PROMPT="${CL_BROWN}%(!.#.❆)%{$reset_color%} $CRUNCH_DIR_$(hirakata romaji) $CRUNCH_PROMPT%{$reset_color%}" } RPROMPT="(%(?:${CL_BROWN}:${CL_RED})%T${CL_NORMAL})"