From 878c43aff4f9047de90ead0729bdec11cfbde1c7 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Mon, 15 Jun 2015 14:56:01 -0700 Subject: [PATCH] make is_zsh definition less complicated. --- dotfiles/lib/shellenv/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotfiles/lib/shellenv/functions.sh b/dotfiles/lib/shellenv/functions.sh index 76adba9c..588cd312 100644 --- a/dotfiles/lib/shellenv/functions.sh +++ b/dotfiles/lib/shellenv/functions.sh @@ -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() {