]> git.bzium.org/ - embe/embe-profile-files.git/commitdiff
Obsługa zsh.
authorMichał Bartoszkiewicz <mbartoszkiewicz@gmail.com>
Tue, 22 Jan 2013 17:39:59 +0000 (18:39 +0100)
committerMichał Bartoszkiewicz <mbartoszkiewicz@gmail.com>
Tue, 22 Jan 2013 17:39:59 +0000 (18:39 +0100)
prefix.sh

index d439cc9e58c95d43d46825f6409865ba884c4585..092a0a8098d687e6a798933af1bcc31d81d4b3f0 100644 (file)
--- 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
 [[ "$-" == *i* ]] || return