Created
April 20, 2012 15:52
-
-
Save nakamuray/2429853 to your computer and use it in GitHub Desktop.
這いよるうんたらかんたら
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
_U_NYA_STATE=1 | |
_U_NYA_PATTERN=( | |
'(」・ω・)」うー! ' | |
'(/・ω・)/にゃー!' | |
'(」・ω・)」うー! ' | |
'(/・ω・)/にゃー!' | |
'(」・ω・)」うー! ' | |
'(/・ω・)/にゃー!' | |
"Let's\(・ω・)/にゃー!" | |
) | |
function u-nya-() { | |
POSTDISPLAY=$'\n'"${_U_NYA_PATTERN[${_U_NYA_STATE}]}" | |
(( _U_NYA_STATE = _U_NYA_STATE % $#_U_NYA_PATTERN + 1 )) | |
zle .self-insert | |
} | |
zle -N self-insert u-nya- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment