From a0f9e815feb5cbe98041797ed93a04749cee6f2b Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Mon, 19 Sep 2011 23:06:05 -0700 Subject: [PATCH] turns out that LHOST is not so useful --- zsh/completion | 2 +- zsh/title | 4 ++-- zshrc | 11 +---------- 3 files changed, 4 insertions(+), 13 deletions(-) diff --git a/zsh/completion b/zsh/completion index 6c3e0b8c..5ee5aa56 100755 --- a/zsh/completion +++ b/zsh/completion @@ -26,7 +26,7 @@ zstyle -e ':completion:*' users "reply=( root '${USERNAME}' )" # caching good zstyle ':completion:*' use-cache on -zstyle ':completion:*' cache-path "${HOME}/.zsh/.zcompcache-${LHOSTNAME}" +zstyle ':completion:*' cache-path "${HOME}/.zsh/.zcompcache-${HOST}" # descriptions zstyle ':completion:*:messages' format $'%{\e[01;35m%} -- %d -- %{\e[00;00m%}' diff --git a/zsh/title b/zsh/title index 4c6cfd1b..47a571c9 100755 --- a/zsh/title +++ b/zsh/title @@ -3,7 +3,7 @@ precmd() { local termtitle - termtitle=`print -P "%n@${LHOSTNAME}[%l]"` + termtitle=`print -P "%n@${HOST}[%l]"` title zsh "$termtitle" } @@ -15,7 +15,7 @@ preexec() local termtitle # Prepend this string to the title. - termtitle=`print -P "%n@${LHOSTNAME}[%l]:"` + termtitle=`print -P "%n@${HOST}[%l]:"` case $cmd[1] in fg) diff --git a/zshrc b/zshrc index 8cfc3a2e..e9c23252 100644 --- a/zshrc +++ b/zshrc @@ -3,16 +3,7 @@ # Original author: Saleem Abdulrasool # vim:set nowrap: -case `uname -s` in - Darwin) - export LHOSTNAME=`scutil --get LocalHostName` - ;; - *) - export LHOSTNAME=${HOST} - ;; -esac - -autoload compinit; compinit -d "${HOME}/.zsh/.zcompdump-${LHOSTNAME}" +autoload compinit; compinit -d "${HOME}/.zsh/.zcompdump-${HOST}" autoload age autoload zmv