Browse Source

Merge remote-tracking branch 'origin/master'

master
Shawn Webb 7 years ago
parent
commit
b3e52baad9
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      .zshrc

+ 2
- 0
.zshrc View File

@@ -45,3 +45,5 @@ export EDITOR=vim
if [ -f $HOME/dotfiles/env.sh ]; then
source $HOME/dotfiles/env.sh
fi

say() { if [[ "${1}" =~ -[a-z]{2} ]]; then local lang=${1#-}; local text="${*#$1}"; else local lang=${LANG%_*}; local text="$*";fi; mplayer "http://translate.google.com/translate_tts?ie=UTF-8&tl=${lang}&q=${text}" &> /dev/null ; }

Loading…
Cancel
Save