Skip to content

Commit a0f9e81

Browse files
committed
turns out that LHOST is not so useful
1 parent fb1ff56 commit a0f9e81

File tree

3 files changed

+4
-13
lines changed

3 files changed

+4
-13
lines changed

zsh/completion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ zstyle -e ':completion:*' users "reply=( root '${USERNAME}' )"
2626

2727
# caching good
2828
zstyle ':completion:*' use-cache on
29-
zstyle ':completion:*' cache-path "${HOME}/.zsh/.zcompcache-${LHOSTNAME}"
29+
zstyle ':completion:*' cache-path "${HOME}/.zsh/.zcompcache-${HOST}"
3030

3131
# descriptions
3232
zstyle ':completion:*:messages' format $'%{\e[01;35m%} -- %d -- %{\e[00;00m%}'

zsh/title

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ precmd()
33
{
44
local termtitle
55

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

@@ -15,7 +15,7 @@ preexec()
1515
local termtitle
1616

1717
# Prepend this string to the title.
18-
termtitle=`print -P "%n@${LHOSTNAME}[%l]:"`
18+
termtitle=`print -P "%n@${HOST}[%l]:"`
1919

2020
case $cmd[1] in
2121
fg)

zshrc

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,7 @@
33
# Original author: Saleem Abdulrasool <[email protected]>
44
# vim:set nowrap:
55

6-
case `uname -s` in
7-
Darwin)
8-
export LHOSTNAME=`scutil --get LocalHostName`
9-
;;
10-
*)
11-
export LHOSTNAME=${HOST}
12-
;;
13-
esac
14-
15-
autoload compinit; compinit -d "${HOME}/.zsh/.zcompdump-${LHOSTNAME}"
6+
autoload compinit; compinit -d "${HOME}/.zsh/.zcompdump-${HOST}"
167

178
autoload age
189
autoload zmv

0 commit comments

Comments
 (0)