mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-06-05 05:03:16 +02:00
Merge 956dec161b into 45a9f28464
This commit is contained in:
commit
8dacdb23f9
50 changed files with 223 additions and 0 deletions
46
plugins/hirakata/files/hira.txt
Normal file
46
plugins/hirakata/files/hira.txt
Normal file
|
|
@ -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
|
||||
46
plugins/hirakata/files/kata.txt
Normal file
46
plugins/hirakata/files/kata.txt
Normal file
|
|
@ -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
|
||||
41
plugins/hirakata/hirakata.plugin.zsh
Normal file
41
plugins/hirakata/hirakata.plugin.zsh
Normal file
|
|
@ -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
|
||||
}
|
||||
BIN
plugins/hirakata/sounds/a.mp3
Normal file
BIN
plugins/hirakata/sounds/a.mp3
Normal file
Binary file not shown.
BIN
plugins/hirakata/sounds/chi.mp3
Normal file
BIN
plugins/hirakata/sounds/chi.mp3
Normal file
Binary file not shown.
BIN
plugins/hirakata/sounds/e.mp3
Normal file
BIN
plugins/hirakata/sounds/e.mp3
Normal file
Binary file not shown.
BIN
plugins/hirakata/sounds/fu.mp3
Normal file
BIN
plugins/hirakata/sounds/fu.mp3
Normal file
Binary file not shown.
BIN
plugins/hirakata/sounds/ha.mp3
Normal file
BIN
plugins/hirakata/sounds/ha.mp3
Normal file
Binary file not shown.
BIN
plugins/hirakata/sounds/he.mp3
Normal file
BIN
plugins/hirakata/sounds/he.mp3
Normal file
Binary file not shown.
BIN
plugins/hirakata/sounds/hi.mp3
Normal file
BIN
plugins/hirakata/sounds/hi.mp3
Normal file
Binary file not shown.
BIN
plugins/hirakata/sounds/ho.mp3
Normal file
BIN
plugins/hirakata/sounds/ho.mp3
Normal file
Binary file not shown.
BIN
plugins/hirakata/sounds/i.mp3
Normal file
BIN
plugins/hirakata/sounds/i.mp3
Normal file
Binary file not shown.
BIN
plugins/hirakata/sounds/ka.mp3
Normal file
BIN
plugins/hirakata/sounds/ka.mp3
Normal file
Binary file not shown.
BIN
plugins/hirakata/sounds/ke.mp3
Normal file
BIN
plugins/hirakata/sounds/ke.mp3
Normal file
Binary file not shown.
BIN
plugins/hirakata/sounds/ki.mp3
Normal file
BIN
plugins/hirakata/sounds/ki.mp3
Normal file
Binary file not shown.
BIN
plugins/hirakata/sounds/ko.mp3
Normal file
BIN
plugins/hirakata/sounds/ko.mp3
Normal file
Binary file not shown.
BIN
plugins/hirakata/sounds/ku.mp3
Normal file
BIN
plugins/hirakata/sounds/ku.mp3
Normal file
Binary file not shown.
BIN
plugins/hirakata/sounds/ma.mp3
Normal file
BIN
plugins/hirakata/sounds/ma.mp3
Normal file
Binary file not shown.
BIN
plugins/hirakata/sounds/me.mp3
Normal file
BIN
plugins/hirakata/sounds/me.mp3
Normal file
Binary file not shown.
BIN
plugins/hirakata/sounds/mi.mp3
Normal file
BIN
plugins/hirakata/sounds/mi.mp3
Normal file
Binary file not shown.
BIN
plugins/hirakata/sounds/mo.mp3
Normal file
BIN
plugins/hirakata/sounds/mo.mp3
Normal file
Binary file not shown.
BIN
plugins/hirakata/sounds/mu.mp3
Normal file
BIN
plugins/hirakata/sounds/mu.mp3
Normal file
Binary file not shown.
BIN
plugins/hirakata/sounds/n.mp3
Normal file
BIN
plugins/hirakata/sounds/n.mp3
Normal file
Binary file not shown.
BIN
plugins/hirakata/sounds/na.mp3
Normal file
BIN
plugins/hirakata/sounds/na.mp3
Normal file
Binary file not shown.
BIN
plugins/hirakata/sounds/ne.mp3
Normal file
BIN
plugins/hirakata/sounds/ne.mp3
Normal file
Binary file not shown.
BIN
plugins/hirakata/sounds/ni.mp3
Normal file
BIN
plugins/hirakata/sounds/ni.mp3
Normal file
Binary file not shown.
BIN
plugins/hirakata/sounds/no.mp3
Normal file
BIN
plugins/hirakata/sounds/no.mp3
Normal file
Binary file not shown.
BIN
plugins/hirakata/sounds/nu.mp3
Normal file
BIN
plugins/hirakata/sounds/nu.mp3
Normal file
Binary file not shown.
BIN
plugins/hirakata/sounds/o.mp3
Normal file
BIN
plugins/hirakata/sounds/o.mp3
Normal file
Binary file not shown.
BIN
plugins/hirakata/sounds/o_2.mp3
Normal file
BIN
plugins/hirakata/sounds/o_2.mp3
Normal file
Binary file not shown.
BIN
plugins/hirakata/sounds/ra.mp3
Normal file
BIN
plugins/hirakata/sounds/ra.mp3
Normal file
Binary file not shown.
BIN
plugins/hirakata/sounds/re.mp3
Normal file
BIN
plugins/hirakata/sounds/re.mp3
Normal file
Binary file not shown.
BIN
plugins/hirakata/sounds/ri.mp3
Normal file
BIN
plugins/hirakata/sounds/ri.mp3
Normal file
Binary file not shown.
BIN
plugins/hirakata/sounds/ro.mp3
Normal file
BIN
plugins/hirakata/sounds/ro.mp3
Normal file
Binary file not shown.
BIN
plugins/hirakata/sounds/ru.mp3
Normal file
BIN
plugins/hirakata/sounds/ru.mp3
Normal file
Binary file not shown.
BIN
plugins/hirakata/sounds/sa.mp3
Normal file
BIN
plugins/hirakata/sounds/sa.mp3
Normal file
Binary file not shown.
BIN
plugins/hirakata/sounds/se.mp3
Normal file
BIN
plugins/hirakata/sounds/se.mp3
Normal file
Binary file not shown.
BIN
plugins/hirakata/sounds/shi.mp3
Normal file
BIN
plugins/hirakata/sounds/shi.mp3
Normal file
Binary file not shown.
BIN
plugins/hirakata/sounds/so.mp3
Normal file
BIN
plugins/hirakata/sounds/so.mp3
Normal file
Binary file not shown.
BIN
plugins/hirakata/sounds/su.mp3
Normal file
BIN
plugins/hirakata/sounds/su.mp3
Normal file
Binary file not shown.
BIN
plugins/hirakata/sounds/ta.mp3
Normal file
BIN
plugins/hirakata/sounds/ta.mp3
Normal file
Binary file not shown.
BIN
plugins/hirakata/sounds/te.mp3
Normal file
BIN
plugins/hirakata/sounds/te.mp3
Normal file
Binary file not shown.
BIN
plugins/hirakata/sounds/to.mp3
Normal file
BIN
plugins/hirakata/sounds/to.mp3
Normal file
Binary file not shown.
BIN
plugins/hirakata/sounds/tsu.mp3
Normal file
BIN
plugins/hirakata/sounds/tsu.mp3
Normal file
Binary file not shown.
BIN
plugins/hirakata/sounds/u.mp3
Normal file
BIN
plugins/hirakata/sounds/u.mp3
Normal file
Binary file not shown.
BIN
plugins/hirakata/sounds/wa.mp3
Normal file
BIN
plugins/hirakata/sounds/wa.mp3
Normal file
Binary file not shown.
BIN
plugins/hirakata/sounds/ya.mp3
Normal file
BIN
plugins/hirakata/sounds/ya.mp3
Normal file
Binary file not shown.
BIN
plugins/hirakata/sounds/yo.mp3
Normal file
BIN
plugins/hirakata/sounds/yo.mp3
Normal file
Binary file not shown.
BIN
plugins/hirakata/sounds/yu.mp3
Normal file
BIN
plugins/hirakata/sounds/yu.mp3
Normal file
Binary file not shown.
90
themes/mawuena.zsh-theme
Normal file
90
themes/mawuena.zsh-theme
Normal file
|
|
@ -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%}' # %{^[[0m%} = normal
|
||||
CL_GREY='%{[0;30m%}' # %{^[[0;30m%} = grey
|
||||
CL_RED='%{[0;31m%}' # %{^[[0;31m%} = red
|
||||
CL_GREEN='%{[0;32m%}' # %{^[[0;32m%} = green
|
||||
CL_BROWN='%{[0;35m%}' # %{^[[0;35m%} = brown
|
||||
CL_YELLOW='%{[0;33m%}' # %{^[[0;33m%} = yellow
|
||||
CL_BLUE='%{[0;34m%}' # %{^[[0;34m%} = blue
|
||||
CL_CYAN='%{[0;36m%}' # %{^[[0;36m%} = cyan
|
||||
CL_SPECIAL='%{[1;30m%}' # %{^[[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})"
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue