diff --git a/plugins/hirakata/files/hira.txt b/plugins/hirakata/files/hira.txt new file mode 100644 index 000000000..1fc41030b --- /dev/null +++ b/plugins/hirakata/files/hira.txt @@ -0,0 +1,46 @@ +あ a.mp3 +い i.mp3 +う u.mp3 +え e.mp3 +お o.mp3 +か ka.mp3 +き ki.mp3 +く ku.mp3 +け ke.mp3 +こ ko.mp3 +さ sa.mp3 +し shi.mp3 +す su.mp3 +せ se.mp3 +そ so.mp3 +た ta.mp3 +ち chi.mp3 +つ tsu.mp3 +て te.mp3 +と to.mp3 +な na.mp3 +に ni.mp3 +ぬ nu.mp3 +ね ne.mp3 +の no.mp3 +は ha.mp3 +ひ hi.mp3 +ふ fu.mp3 +へ he.mp3 +ほ ho.mp3 +ま ma.mp3 +み mi.mp3 +む mu.mp3 +め me.mp3 +も mo.mp3 +や ya.mp3 +ゆ yu.mp3 +よ yo.mp3 +ら ra.mp3 +り ri.mp3 +る ru.mp3 +れ re.mp3 +ろ ro.mp3 +わ wa.mp3 +を o.mp3 +ん n.mp3 diff --git a/plugins/hirakata/files/kata.txt b/plugins/hirakata/files/kata.txt new file mode 100644 index 000000000..a04700ad3 --- /dev/null +++ b/plugins/hirakata/files/kata.txt @@ -0,0 +1,46 @@ +ア a.mp3 +イ i.mp3 +ウ u.mp3 +エ e.mp3 +オ o.mp3 +カ ka.mp3 +キ ki.mp3 +ク ku.mp3 +ケ ke.mp3 +コ ko.mp3 +サ sa.mp3 +シ shi.mp3 +ス su.mp3 +セ se.mp3 +ソ so.mp3 +タ ta.mp3 +チ chi.mp3 +ツ tsu.mp3 +テ te.mp3 +ト to.mp3 +ナ na.mp3 +ニ ni.mp3 +ヌ nu.mp3 +ネ ne.mp3 +ノ no.mp3 +ハ ha.mp3 +ヒ hi.mp3 +フ fu.mp3 +ヘ he.mp3 +ホ ho.mp3 +マ ma.mp3 +ミ mi.mp3 +ム mu.mp3 +メ me.mp3 +モ mo.mp3 +ヤ ya.mp3 +ユ yu.mp3 +ヨ yo.mp3 +ラ ra.mp3 +リ ri.mp3 +ル ru.mp3 +レ re.mp3 +ロ ro.mp3 +ワ wa.mp3 +ヲ o.mp3 +ン n.mp3 diff --git a/plugins/hirakata/hirakata.plugin.zsh b/plugins/hirakata/hirakata.plugin.zsh new file mode 100644 index 000000000..440b3bd30 --- /dev/null +++ b/plugins/hirakata/hirakata.plugin.zsh @@ -0,0 +1,41 @@ +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) + romaji=0 + mute=0 + + for arg in "$@" + do + case "$arg" in + "romaji") + romaji=1 + ;; + "hiragana") + random_symbol=$(echo "$fh" | shuf -n1) + ;; + "katakana") + random_symbol=$(echo "$fk" | shuf -n1) + ;; + "mute") + mute=1 + ;; + esac + done + + symbol=$(echo $random_symbol | cut -d ' ' -f1) + sound=$(echo $random_symbol | cut -d ' ' -f2) + + echo -n $symbol + + if [ $romaji -eq 1 ]; then + romaji=$(echo $sound | cut -d '.' -f1) + echo -n " ($romaji)" + fi + + if [ $mute -eq 0 ]; then + (mpg321 -q $p/sounds/$sound & ) > /dev/null 2>&1 + fi +} diff --git a/plugins/hirakata/sounds/a.mp3 b/plugins/hirakata/sounds/a.mp3 new file mode 100644 index 000000000..d6cd9555f Binary files /dev/null and b/plugins/hirakata/sounds/a.mp3 differ diff --git a/plugins/hirakata/sounds/chi.mp3 b/plugins/hirakata/sounds/chi.mp3 new file mode 100644 index 000000000..da6e4c157 Binary files /dev/null and b/plugins/hirakata/sounds/chi.mp3 differ diff --git a/plugins/hirakata/sounds/e.mp3 b/plugins/hirakata/sounds/e.mp3 new file mode 100644 index 000000000..d2a42d25e Binary files /dev/null and b/plugins/hirakata/sounds/e.mp3 differ diff --git a/plugins/hirakata/sounds/fu.mp3 b/plugins/hirakata/sounds/fu.mp3 new file mode 100644 index 000000000..42be120bf Binary files /dev/null and b/plugins/hirakata/sounds/fu.mp3 differ diff --git a/plugins/hirakata/sounds/ha.mp3 b/plugins/hirakata/sounds/ha.mp3 new file mode 100644 index 000000000..04a6db6fb Binary files /dev/null and b/plugins/hirakata/sounds/ha.mp3 differ diff --git a/plugins/hirakata/sounds/he.mp3 b/plugins/hirakata/sounds/he.mp3 new file mode 100644 index 000000000..05b6944c2 Binary files /dev/null and b/plugins/hirakata/sounds/he.mp3 differ diff --git a/plugins/hirakata/sounds/hi.mp3 b/plugins/hirakata/sounds/hi.mp3 new file mode 100644 index 000000000..d3e50a147 Binary files /dev/null and b/plugins/hirakata/sounds/hi.mp3 differ diff --git a/plugins/hirakata/sounds/ho.mp3 b/plugins/hirakata/sounds/ho.mp3 new file mode 100644 index 000000000..d9f307ffc Binary files /dev/null and b/plugins/hirakata/sounds/ho.mp3 differ diff --git a/plugins/hirakata/sounds/i.mp3 b/plugins/hirakata/sounds/i.mp3 new file mode 100644 index 000000000..de5436279 Binary files /dev/null and b/plugins/hirakata/sounds/i.mp3 differ diff --git a/plugins/hirakata/sounds/ka.mp3 b/plugins/hirakata/sounds/ka.mp3 new file mode 100644 index 000000000..50e60c392 Binary files /dev/null and b/plugins/hirakata/sounds/ka.mp3 differ diff --git a/plugins/hirakata/sounds/ke.mp3 b/plugins/hirakata/sounds/ke.mp3 new file mode 100644 index 000000000..e35a1bfa3 Binary files /dev/null and b/plugins/hirakata/sounds/ke.mp3 differ diff --git a/plugins/hirakata/sounds/ki.mp3 b/plugins/hirakata/sounds/ki.mp3 new file mode 100644 index 000000000..372bcdfc2 Binary files /dev/null and b/plugins/hirakata/sounds/ki.mp3 differ diff --git a/plugins/hirakata/sounds/ko.mp3 b/plugins/hirakata/sounds/ko.mp3 new file mode 100644 index 000000000..be4c53839 Binary files /dev/null and b/plugins/hirakata/sounds/ko.mp3 differ diff --git a/plugins/hirakata/sounds/ku.mp3 b/plugins/hirakata/sounds/ku.mp3 new file mode 100644 index 000000000..fba8167f6 Binary files /dev/null and b/plugins/hirakata/sounds/ku.mp3 differ diff --git a/plugins/hirakata/sounds/ma.mp3 b/plugins/hirakata/sounds/ma.mp3 new file mode 100644 index 000000000..223b2fee7 Binary files /dev/null and b/plugins/hirakata/sounds/ma.mp3 differ diff --git a/plugins/hirakata/sounds/me.mp3 b/plugins/hirakata/sounds/me.mp3 new file mode 100644 index 000000000..9c1dd8ce4 Binary files /dev/null and b/plugins/hirakata/sounds/me.mp3 differ diff --git a/plugins/hirakata/sounds/mi.mp3 b/plugins/hirakata/sounds/mi.mp3 new file mode 100644 index 000000000..4112c905c Binary files /dev/null and b/plugins/hirakata/sounds/mi.mp3 differ diff --git a/plugins/hirakata/sounds/mo.mp3 b/plugins/hirakata/sounds/mo.mp3 new file mode 100644 index 000000000..f4f125c97 Binary files /dev/null and b/plugins/hirakata/sounds/mo.mp3 differ diff --git a/plugins/hirakata/sounds/mu.mp3 b/plugins/hirakata/sounds/mu.mp3 new file mode 100644 index 000000000..ce9034129 Binary files /dev/null and b/plugins/hirakata/sounds/mu.mp3 differ diff --git a/plugins/hirakata/sounds/n.mp3 b/plugins/hirakata/sounds/n.mp3 new file mode 100644 index 000000000..59eaea0cd Binary files /dev/null and b/plugins/hirakata/sounds/n.mp3 differ diff --git a/plugins/hirakata/sounds/na.mp3 b/plugins/hirakata/sounds/na.mp3 new file mode 100644 index 000000000..1ce44eabe Binary files /dev/null and b/plugins/hirakata/sounds/na.mp3 differ diff --git a/plugins/hirakata/sounds/ne.mp3 b/plugins/hirakata/sounds/ne.mp3 new file mode 100644 index 000000000..d1e8e0753 Binary files /dev/null and b/plugins/hirakata/sounds/ne.mp3 differ diff --git a/plugins/hirakata/sounds/ni.mp3 b/plugins/hirakata/sounds/ni.mp3 new file mode 100644 index 000000000..42ab9fe82 Binary files /dev/null and b/plugins/hirakata/sounds/ni.mp3 differ diff --git a/plugins/hirakata/sounds/no.mp3 b/plugins/hirakata/sounds/no.mp3 new file mode 100644 index 000000000..0827e19c6 Binary files /dev/null and b/plugins/hirakata/sounds/no.mp3 differ diff --git a/plugins/hirakata/sounds/nu.mp3 b/plugins/hirakata/sounds/nu.mp3 new file mode 100644 index 000000000..cb7380cd4 Binary files /dev/null and b/plugins/hirakata/sounds/nu.mp3 differ diff --git a/plugins/hirakata/sounds/o.mp3 b/plugins/hirakata/sounds/o.mp3 new file mode 100644 index 000000000..8ae33e2fd Binary files /dev/null and b/plugins/hirakata/sounds/o.mp3 differ diff --git a/plugins/hirakata/sounds/o_2.mp3 b/plugins/hirakata/sounds/o_2.mp3 new file mode 100644 index 000000000..8ae33e2fd Binary files /dev/null and b/plugins/hirakata/sounds/o_2.mp3 differ diff --git a/plugins/hirakata/sounds/ra.mp3 b/plugins/hirakata/sounds/ra.mp3 new file mode 100644 index 000000000..37250f407 Binary files /dev/null and b/plugins/hirakata/sounds/ra.mp3 differ diff --git a/plugins/hirakata/sounds/re.mp3 b/plugins/hirakata/sounds/re.mp3 new file mode 100644 index 000000000..adc529ebe Binary files /dev/null and b/plugins/hirakata/sounds/re.mp3 differ diff --git a/plugins/hirakata/sounds/ri.mp3 b/plugins/hirakata/sounds/ri.mp3 new file mode 100644 index 000000000..b4d6d93bc Binary files /dev/null and b/plugins/hirakata/sounds/ri.mp3 differ diff --git a/plugins/hirakata/sounds/ro.mp3 b/plugins/hirakata/sounds/ro.mp3 new file mode 100644 index 000000000..11199d411 Binary files /dev/null and b/plugins/hirakata/sounds/ro.mp3 differ diff --git a/plugins/hirakata/sounds/ru.mp3 b/plugins/hirakata/sounds/ru.mp3 new file mode 100644 index 000000000..7719383e1 Binary files /dev/null and b/plugins/hirakata/sounds/ru.mp3 differ diff --git a/plugins/hirakata/sounds/sa.mp3 b/plugins/hirakata/sounds/sa.mp3 new file mode 100644 index 000000000..cfbdb7f21 Binary files /dev/null and b/plugins/hirakata/sounds/sa.mp3 differ diff --git a/plugins/hirakata/sounds/se.mp3 b/plugins/hirakata/sounds/se.mp3 new file mode 100644 index 000000000..885b00378 Binary files /dev/null and b/plugins/hirakata/sounds/se.mp3 differ diff --git a/plugins/hirakata/sounds/shi.mp3 b/plugins/hirakata/sounds/shi.mp3 new file mode 100644 index 000000000..12360e3e5 Binary files /dev/null and b/plugins/hirakata/sounds/shi.mp3 differ diff --git a/plugins/hirakata/sounds/so.mp3 b/plugins/hirakata/sounds/so.mp3 new file mode 100644 index 000000000..3ed078a30 Binary files /dev/null and b/plugins/hirakata/sounds/so.mp3 differ diff --git a/plugins/hirakata/sounds/su.mp3 b/plugins/hirakata/sounds/su.mp3 new file mode 100644 index 000000000..6bf32d43a Binary files /dev/null and b/plugins/hirakata/sounds/su.mp3 differ diff --git a/plugins/hirakata/sounds/ta.mp3 b/plugins/hirakata/sounds/ta.mp3 new file mode 100644 index 000000000..7508240c4 Binary files /dev/null and b/plugins/hirakata/sounds/ta.mp3 differ diff --git a/plugins/hirakata/sounds/te.mp3 b/plugins/hirakata/sounds/te.mp3 new file mode 100644 index 000000000..d3eafb323 Binary files /dev/null and b/plugins/hirakata/sounds/te.mp3 differ diff --git a/plugins/hirakata/sounds/to.mp3 b/plugins/hirakata/sounds/to.mp3 new file mode 100644 index 000000000..2f967bd5e Binary files /dev/null and b/plugins/hirakata/sounds/to.mp3 differ diff --git a/plugins/hirakata/sounds/tsu.mp3 b/plugins/hirakata/sounds/tsu.mp3 new file mode 100644 index 000000000..a24bfc78c Binary files /dev/null and b/plugins/hirakata/sounds/tsu.mp3 differ diff --git a/plugins/hirakata/sounds/u.mp3 b/plugins/hirakata/sounds/u.mp3 new file mode 100644 index 000000000..3d997bc96 Binary files /dev/null and b/plugins/hirakata/sounds/u.mp3 differ diff --git a/plugins/hirakata/sounds/wa.mp3 b/plugins/hirakata/sounds/wa.mp3 new file mode 100644 index 000000000..2dd516d2a Binary files /dev/null and b/plugins/hirakata/sounds/wa.mp3 differ diff --git a/plugins/hirakata/sounds/ya.mp3 b/plugins/hirakata/sounds/ya.mp3 new file mode 100644 index 000000000..964625516 Binary files /dev/null and b/plugins/hirakata/sounds/ya.mp3 differ diff --git a/plugins/hirakata/sounds/yo.mp3 b/plugins/hirakata/sounds/yo.mp3 new file mode 100644 index 000000000..d1f888f3d Binary files /dev/null and b/plugins/hirakata/sounds/yo.mp3 differ diff --git a/plugins/hirakata/sounds/yu.mp3 b/plugins/hirakata/sounds/yu.mp3 new file mode 100644 index 000000000..5e5e5e154 Binary files /dev/null and b/plugins/hirakata/sounds/yu.mp3 differ diff --git a/themes/mawuena.zsh-theme b/themes/mawuena.zsh-theme new file mode 100644 index 000000000..69db813a7 --- /dev/null +++ b/themes/mawuena.zsh-theme @@ -0,0 +1,90 @@ +# CRUNCH - created from Steve Eley's cat waxing. +# Initially hacked from the Dallas theme. Thanks, Dallas Reedy. +# +# This theme assumes you do most of your oh-my-zsh'ed "colorful" work at a single machine, +# and eschews the standard space-consuming user and hostname info. Instead, only the +# things that vary in my own workflow are shown: +# +# * The time (not the date) +# * The RVM version and gemset (omitting the 'ruby' name if it's MRI) +# * The current directory +# * The Git branch and its 'dirty' state +# +# Colors are at the top so you can mess with those separately if you like. +# For the most part I stuck with Dallas's. + +CL_NORMAL='%{%}' # %{^[[0m%} = normal +CL_GREY='%{%}' # %{^[[0;30m%} = grey +CL_RED='%{%}' # %{^[[0;31m%} = red +CL_GREEN='%{%}' # %{^[[0;32m%} = green +CL_BROWN='%{%}' # %{^[[0;35m%} = brown +CL_YELLOW='%{%}' # %{^[[0;33m%} = yellow +CL_BLUE='%{%}' # %{^[[0;34m%} = blue +CL_CYAN='%{%}' # %{^[[0;36m%} = cyan +CL_SPECIAL='%{%}' # %{^[[1;30m%} = bold grey + +CR_DEB_COLOR="%{$fg[green]%}" +CRUNCH_BRACKET_COLOR="%{$fg[white]%}" +CRUNCH_TIME_COLOR="%{$fg[yellow]%}" +CRUNCH_RVM_COLOR="%{$fg[magenta]%}" +CRUNCH_DIR_COLOR="%{$fg[cyan]%}" +CRUNCH_GIT_BRANCH_COLOR="%{$fg[green]%}" +CRUNCH_GIT_CLEAN_COLOR="%{$fg[green]%}" +CRUNCH_GIT_DIRTY_COLOR="%{$fg[red]%}" + +case ${HOST} in + *grimly*) + if [ ${USER} = 'root' ] + then + PR_USER="[${CL_GREEN}%n${CL_NORMAL} @" + PR_HOST=" ${CL_SPECIAL}%m${CL_NORMAL}] %# " + elif [ ${USER} = 'rockyluke' ] + then + PR_USER="${CL_YELLOW}%n${CL_NORMAL}" + PR_HOST=" ${CL_GREEN}%m${CL_NORMAL} %# " + else + PR_USER="%n" + PR_HOST=" %m %#}" + fi + ;; + *) + if [ ${USER} = 'root' ] + then + PR_USER="[${CL_RED}%n${CL_NORMAL} @" + PR_HOST=" ${CL_SPECIAL}%m${CL_NORMAL}] %# " + elif [ ${USER} = 'rockyluke' ] + then + PR_USER="${CL_YELLOW}%n ● ${CL_NORMAL}" + PR_HOST=" ${CL_RED}%m${CL_NORMAL} %# " + else + PR_USER="%n ● " + PR_HOST="%m %h" + fi + ;; +esac + +# These Git variables are used by the oh-my-zsh git_prompt_info helper: +ZSH_THEME_GIT_PROMPT_PREFIX="$CRUNCH_BRACKET_COLOR:$CRUNCH_GIT_BRANCH_COLOR" +ZSH_THEME_GIT_PROMPT_SUFFIX="" +ZSH_THEME_GIT_PROMPT_CLEAN=" $CRUNCH_GIT_CLEAN_COLOR✓" +ZSH_THEME_GIT_PROMPT_DIRTY=" $CRUNCH_GIT_DIRTY_COLOR✗" + +# Our elements: +CRUNCH_TIME_="$CRUNCH_BRACKET_COLOR(${PR_USER}${PR_HOST}$CRUNCH_BRACKET_COLOR)%{$reset_color%}" +if which rvm-prompt &> /dev/null; then + CRUNCH_RVM_="$CRUNCH_BRACKET_COLOR"["$CRUNCH_RVM_COLOR\${\$(~/.rvm/bin/rvm-prompt i v g)#ruby-}$CRUNCH_BRACKET_COLOR"]"%{$reset_color%}" +else + if which rbenv &> /dev/null; then + CRUNCH_RVM="$CRUNCH_BRACKET_COLOR"["$CRUNCH_RVM_COLOR\${\$(rbenv version | sed -e 's/ (set.*$//' -e 's/^ruby-//')}$CRUNCH_BRACKET_COLOR"]"%{$reset_color%}" + fi +fi +CRUNCH_DIR_="$CRUNCH_DIR_COLOR%~\$(git_prompt_info) " +CRUNCH_PROMPT="$CRUNCH_BRACKET_COLOR➭ " + +# Put it all together! +precmd() { +PROMPT="${CL_BROWN}%(!.#.❆)%{$reset_color%} $CRUNCH_DIR_$(hirakata romaji) $CRUNCH_PROMPT%{$reset_color%}" +} + +RPROMPT="(%(?:${CL_BROWN}:${CL_RED})%T${CL_NORMAL})" +