X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=7ca68cfac8f67a3959ed68a4cfc8ce980047813e;hb=374a4570d22d4300d89a6a43540f50ada586aa72;hp=fd75bbcb003568495030340e571a768e84afa354;hpb=fb0f43a91f4d7abf4ce4a33c264ec151c7a1858b;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index fd75bbc..7ca68cf 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -850,9 +850,8 @@ 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 - NAME="@$HOSTNAME" + if [[ "$HOSTNAME" != $(hostname) ]] ; then + NAME="@$HOSTNAME" fi # get the name of the program currently running and hostname of local machine # set screen window title if running in a screen