X-Git-Url: https://git.grml.org/?a=blobdiff_plain;ds=sidebyside;f=etc%2Fzsh%2Fzshrc;h=0c60a9a9337347182df64bc7d9c4669cc8d8f52c;hb=cd0cfc77c94225e4955668c4d05a1b2a2b7e7f22;hp=50898ce106381e19add71c4be08e5285a559b65a;hpb=c5df73fd74fb9a15b74095efd6312b931ceb0096;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 50898ce..0c60a9a 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -536,7 +536,12 @@ export PAGER=${PAGER:-less} export MAIL=${MAIL:-/var/mail/$USER} # if we don't set $SHELL then aterm, rxvt,.. will use /bin/sh or /bin/bash :-/ -export SHELL='/bin/zsh' +if [[ -z "$SHELL" ]] ; then + SHELL="$(which zsh)" + if [[ -x "$SHELL" ]] ; then + export SHELL + fi +fi # color setup for ls: check_com -c dircolors && eval $(dircolors -b)