Permalink
Browse files

turns out that LHOST is not so useful

  • Loading branch information...
1 parent fb1ff56 commit a0f9e815feb5cbe98041797ed93a04749cee6f2b @majnemer committed Sep 20, 2011
Showing with 4 additions and 13 deletions.
  1. +1 −1 zsh/completion
  2. +2 −2 zsh/title
  3. +1 −10 zshrc
View
@@ -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%}'
View
@@ -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)
View
11 zshrc
@@ -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

0 comments on commit a0f9e81

Please sign in to comment.