X-Git-Url: https://git.grml.org/?a=blobdiff_plain;ds=sidebyside;f=etc%2Fzsh%2Fzshrc;h=85a61fa471be08fa95058ee3c3a8a7b0841dd7fc;hb=c6fee93cc936058cf06b2ed808d5e996dca063ad;hp=55715d82de50dabd5462958cde18b48be77d9f71;hpb=18ce1794870da31c52a21ea0f50db3d9b276496e;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 55715d8..85a61fa 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -396,8 +396,8 @@ fi # precmd () { setopt promptsubst; [[ -o interactive ]] && jobs -l; - is4 && ! [[ -n "$NOPRECMD" ]] && precmd () { - (( NOPRECMD > 0 )) && return 0 + is4 && [[ -z $NOPRECMD ]] && precmd () { + [[ -n $NOPRECMD ]] && return 0 # just use DONTSETRPROMPT=1 to be able to overwrite RPROMPT if [[ -z ${DONTSETRPROMPT} ]] ; then if [ -n "$BATTERY" ] ; then @@ -419,8 +419,8 @@ fi # chpwd () => a function which is executed whenever the directory is changed # preexec() => a function running before every command - is4 && ! [[ -n "$NOPRECMD" ]] && preexec () { - (( NOPRECMD > 0 )) && return 0 + is4 && [[ -z $NOPRECMD ]] && preexec () { + [[ -n $NOPRECMD ]] && return 0 # set hostname if not running on host with name 'grml' local HOSTNAME=$(hostname) if [[ "$HOSTNAME" != grml ]] ; then