Skip to content

Instantly share code, notes, and snippets.

@jewel12
Created October 12, 2010 15:56
Show Gist options
  • Save jewel12/622418 to your computer and use it in GitHub Desktop.
Save jewel12/622418 to your computer and use it in GitHub Desktop.
# Translation
function gtranslation() {
RESULT=`ruby "gtranslation.rb のパス" "${RBUFFER}"`
zle push-line
echo "${RESULT}"
zle send-break
}
zle -N gtranslation
bindkey "^t" gtranslation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment