setopt share_history
function _we_are_in_gnu_screen () {
- [ "$WINDOW" != "" ]
+ [[ "$WINDOW" != "" ]]
}
_prompt_base='%B[%n@%m] %{%(?.$fg[green].$fg[red])%}%#%{$reset_color%}%b '
function preexec() { # Hook
if { _we_are_in_gnu_screen } then
# Set the window title of GNU Screen.
- local cmd=${1[(wr)^(*=*|sudo|nice|env|time|-*|[0-9]*)]}
+ local cmd=${1[(wr)^(*=*|sudo|nice|env|time|ssh|-*|[0-9]*)]}
printf "\ek$cmd\e\\"
fi
}
git branch --no-color 2>/dev/null \
| sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'
- elif [[ -d $absdir/.hg ]] then
+ elif [[ -r $absdir/.hg/branch ]] then
# Hg
- hg branch 2>/dev/null
+ cat $absdir/.hg/branch
elif [[ -d $absdir/_darcs ]] then
# Darcs
alias w3m="w3m -O UTF-8"
alias w3mb="w3m -O UTF-8 -B"
alias pkgsrc="pushd /usr/pkgsrc"
+alias man="LANG=C man"
alias aria="ssh -X admin@aria.cielonegro.org"
alias nem="ssh -X pho@nem.cielonegro.org"