Skip to content

Commit adf279a

Browse files
committed
Merge branch 'master' of git@github.com:jgilmore/Cruft
2 parents 1965ab7 + c51b415 commit adf279a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

zshrc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,13 @@ PATH=/home/jgilmore/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/
5555

5656
local head
5757
#If using ssh, set machine name to red.
58-
if [ -n "$SSH_TTY" ]; then
59-
head="%n@%{%$fg_bold[red]%}%m%{$reset_color%}"
58+
set
59+
if [ "$SSH_TTY" ]; then
60+
head="%n@%{$fg_bold[red]%}%m%{$reset_color%}"
6061
else
6162
head='%n@%m'
6263
fi
63-
PROMPT="%n@%m%3~%(?.%{$fg[green]%}:%).%{$fg[red]%} %? :()%{$reset_color%}%#"
64+
PROMPT="$head%3~%(?.%{$fg[green]%}:%).%{$fg[red]%} %? :()%{$reset_color%}%#"
6465

6566
case $TERM in
6667
xterm*)

0 commit comments

Comments
 (0)