Skip to content

Instantly share code, notes, and snippets.

@nakamuray
Created April 20, 2012 15:52
Show Gist options
  • Save nakamuray/2429853 to your computer and use it in GitHub Desktop.
Save nakamuray/2429853 to your computer and use it in GitHub Desktop.
這いよるうんたらかんたら
_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