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() {