X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=ab04101eecf24f4773b6cc64bcfb668648c3a913;hb=367f7ab6222ea7afab10986563a043c1e2f68df2;hp=89beb3678e22138c8f1dc1b5f7f6d601ddca8843;hpb=6eed6ec8a51ca1e9f2f3f826fdfb44d51a64ebf9;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 89beb36..ab04101 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -307,14 +307,14 @@ isgrml && checkhome() { # }}} # {{{ set some variables -#v# if check_com -c vim ; then +#v# export EDITOR=${EDITOR:-vim} else export EDITOR=${EDITOR:-vi} fi -#v# +#v# export MAIL=${MAIL:-/var/mail/$USER} # if we don't set $SHELL then aterm, rxvt,.. will use /bin/sh or /bin/bash :-/ @@ -871,7 +871,7 @@ if [[ -f ~/.zdirs ]] && [[ ${#dirstack[*]} -eq 0 ]] ; then fi chpwd() { - builtin dirs -pl >! ~/.zdirs + builtin print -l ${(u)dirstack} >! ~/.zdirs } # }}} @@ -1005,7 +1005,7 @@ is4 && [[ -z $NOPRECMD ]] && \ preexec () { [[ -n $NOPRECMD ]] && return 0 # set hostname if not running on host with name 'grml' - if [[ "$HOSTNAME" != $(hostname) ]] ; then + if [[ -n "$HOSTNAME" ]] && [[ "$HOSTNAME" != $(hostname) ]] ; then NAME="@$HOSTNAME" fi # get the name of the program currently running and hostname of local machine