X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=641408935d2b8ffd571e92ccc7fcdc9f02b28cc7;hb=fa4c0c3937e1edccf092e15a560a2da22ee5b6a0;hp=50898ce106381e19add71c4be08e5285a559b65a;hpb=4d08694c336e3e92a4afa1ade849490cf73b6fb8;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 50898ce..6414089 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) @@ -1119,7 +1124,6 @@ inplaceMkDirs() { fi } -#k# mkdir -p