Created
May 31, 2012 11:40
-
-
Save lo48576/2842849 to your computer and use it in GitHub Desktop.
zshに這いよる混沌
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
export u_nyah_count=${u_nyah_count:-"1"} | |
u_nyah_prompt() | |
{ | |
pstr[1]='(」・ω・)」うー! ' | |
pstr[2]='(/・ω・)/にゃー!' | |
pstr[3]='(」・ω・)」うー! ' | |
pstr[4]='(/・ω・)/にゃー!' | |
pstr[5]='(」・ω・)」うー! ' | |
pstr[6]='(/・ω・)/にゃー!' | |
pstr[7]="Let'\(・ω・)/にゃー!" | |
RPROMPT="$pstr[$u_nyah_count]" | |
u_nyah_count=$(( $u_nyah_count + 1 )) | |
if [ $u_nyah_count -gt 7 ] ; then | |
export u_nyah_count=$(( $u_nyah_count - 7 )) | |
fi | |
} | |
precmd_functions=($precmd_functions u_nyah_prompt) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment