Browse Source

Clean up zshrc template

Also export COLORTERM=yes since /bin/ls now requires it on recent
FreeBSD / HardenedBSD builds.
master
Shawn Webb 1 year ago
parent
commit
6a5cfe57ab
No known key found for this signature in database GPG Key ID: 6A84658F52456EEE
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      zshrc.templ

+ 2
- 2
zshrc.templ View File

@@ -44,7 +44,7 @@ function paste() {
}

PROMPT='%{$fg[$NCOLOR]%}%B%m[%n]%b%{$reset_color%}:%{$fg[blue]%}%B%d%b%{$reset_color%}%(?.. (%{$fg[red]%}%?%{$reset_color%}%)) %(!.#.$) '

export EDITOR=vim
export GPG_TTY=$(tty)

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 ; }
export COLORTERM=yes

Loading…
Cancel
Save