make is_zsh definition less complicated.

This commit is contained in:
Ivan Malison 2015-06-15 14:56:01 -07:00
parent e0f1a5b734
commit 878c43aff4

View File

@ -80,7 +80,7 @@ function current_shell() {
}
function is_zsh() {
test -n "$(current_shell | grep -o zsh)"
[ ! -z ${ZSH_VERSION+x} ]
}
function git_diff_add() {