From: Michał Bartoszkiewicz Date: Tue, 22 Jan 2013 17:39:59 +0000 (+0100) Subject: Obsługa zsh. X-Git-Url: https://git.bzium.org/embe/embe-profile-files.git/commitdiff_plain/8b010a84585c4971d420cbed7b794346c6de1244?ds=sidebyside Obsługa zsh. --- diff --git a/prefix.sh b/prefix.sh index d439cc9..092a0a8 100644 --- a/prefix.sh +++ b/prefix.sh @@ -1,2 +1,3 @@ -shopt -q login_shell || return +[[ -z "$BASH_VERSION" ]] || shopt -q login_shell || return +[[ -z "$ZSH_VERSION" ]] || [[ -o login ]] || return [[ "$-" == *i* ]] || return