From 38612d32712f5a7f5d9385c53f5a5b180561f5db Mon Sep 17 00:00:00 2001 From: HardCand01 Date: Sat, 7 Jun 2014 22:06:24 +0200 Subject: [PATCH] fix: path --- plugins/hirakata/hirakata.plugin.zsh | 7 ++++--- themes/mawuena.zsh-theme | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) 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})"