]> err.no Git - dotfiles/commitdiff
Typos
authortfheen <tfheen@8da78d58-1cd3-0310-bee5-d77bd1b3e8bf>
Mon, 4 Apr 2011 13:13:47 +0000 (13:13 +0000)
committertfheen <tfheen@8da78d58-1cd3-0310-bee5-d77bd1b3e8bf>
Mon, 4 Apr 2011 13:13:47 +0000 (13:13 +0000)
git-svn-id: file:///svn/tfheen/trunk/dotfiles@1459 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf

zshrc

diff --git a/zshrc b/zshrc
index 402985b8d003a6c993ff672d4cd43ac740e251af..7deaa06633e242c7282464da21fb67731db7d404 100644 (file)
--- a/zshrc
+++ b/zshrc
@@ -35,8 +35,8 @@ if [ $ZSH_VERSION = 4.3.6 ]; then
     FG_BLACK=$(tput setf 0)
     PROMPT=': %(!.%{'"$FG_RED"'%}.)%U%n@%m%u%(!.%{'"$FG_BLACK"'%}.)'${CHROOT}' ${vcs_info_msg_0_}%B%30<..<%~%b %(!.#.>) '
 else
-    if [ -z "$SSH_CONNECTION" ]; then
-       FG_HOST="$(printf "%.3d" "${$(echo ${SSH_CONNECTION%% *} | md5sum):0:2}")"
+    if [ -n "$SSH_CONNECTION" ]; then
+       FG_HOST="$(printf "%.3d" "$(expr substr "$(echo "${SSH_CONNECTION%% *}" | md5sum)" 1 2)")"
        BG_HOST="$(printf "%.3d" "$(( 256 - $FG_HOST ))")"
     fi