Skip to content

Commit

Permalink
turns out that LHOST is not so useful
Browse files Browse the repository at this point in the history
  • Loading branch information
majnemer committed Sep 20, 2011
1 parent fb1ff56 commit a0f9e81
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
2 changes: 1 addition & 1 deletion zsh/completion
Expand Up @@ -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%}'
Expand Down
4 changes: 2 additions & 2 deletions zsh/title
Expand Up @@ -3,7 +3,7 @@ precmd()
{
local termtitle

termtitle=`print -P "%n@${LHOSTNAME}[%l]"`
termtitle=`print -P "%n@${HOST}[%l]"`
title zsh "$termtitle"
}

Expand All @@ -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)
Expand Down
11 changes: 1 addition & 10 deletions zshrc
Expand Up @@ -3,16 +3,7 @@
# Original author: Saleem Abdulrasool <compnerd@compnerd.org>
# 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
Expand Down

0 comments on commit a0f9e81

Please sign in to comment.