make is_zsh definition less complicated.
This commit is contained in:
parent
e0f1a5b734
commit
878c43aff4
@ -80,7 +80,7 @@ function current_shell() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function is_zsh() {
|
function is_zsh() {
|
||||||
test -n "$(current_shell | grep -o zsh)"
|
[ ! -z ${ZSH_VERSION+x} ]
|
||||||
}
|
}
|
||||||
|
|
||||||
function git_diff_add() {
|
function git_diff_add() {
|
||||||
|
Loading…
Reference in New Issue
Block a user