From: tfheen Date: Mon, 4 Apr 2011 13:13:47 +0000 (+0000) Subject: Typos X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=063820af16e731131625cf4277604689397319c3;p=dotfiles Typos git-svn-id: file:///svn/tfheen/trunk/dotfiles@1459 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf --- diff --git a/zshrc b/zshrc index 402985b..7deaa06 100644 --- 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