This file contains hidden or 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
# google_translate [-j, -e] | |
# $ google_translate -e power line | |
function google_translate() { | |
local str opt arg | |
str=`pbpaste` # clipboard | |
arg=`echo ${@:2} | sed -e 's/ */+/g'` # argument | |
en_jp="?hl=ja&sl=en&tl=ja&ie=UTF-8&oe=UTF-8" # url | |
case "$1" in |
This file contains hidden or 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
## zsh/growl integration: any command that takes longer than 5 seconds | |
## will trigger a growl notification when it completes. | |
## https://github.com/patbenatar/dotfiles/blob/master/zsh/growl.zsh | |
if growlnotify -h &>/dev/null; then | |
preexec() { | |
zsh_growl_cmd=$1 | |
zsh_growl_time=`date +%s` | |
} |
NewerOlder