add: hirakata plugin - hiragana and katakana in prompt + sound

This commit is contained in:
Mawu3n4 2014-06-05 17:31:14 +02:00
commit 0a35fcd7d5
94 changed files with 104 additions and 0 deletions

View file

@ -0,0 +1,12 @@
p="$ZSH/plugins/hirakata/"
f=$(cat $p"files/hk_symbols.txt")
function hirakata() {
random_symbol=$(echo "$f" | shuf -n1)
symbol=$(echo $random_symbol | cut -d ' ' -f1)
sound=$(echo $random_symbol | cut -d ' ' -f2)
( mpg321 $p'sounds/'$sound & ) > /dev/null 2>&1
echo $symbol
}