function git () {
# Need to reset title since we put the branch name in the titlebar
- git=$(which git)
+ git=$(/usr/bin/which git)
if [ "${git:0:3}" != "no " ]; then
if [ "$1" = "checkout" -o "$1" = "co" ]; then
- $git $@
+ $git "$@"
set_title
elif [ "$1" = "files" ]; then
if [ -z "$2" ]; then
$git show --pretty="" --name-only $2
fi
else
- $git $@
+ $git "$@"
fi
fi
} # git