From 784eb963c7d46133a43916ebb800049b0714207d Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Wed, 10 Aug 2011 21:56:48 +0200 Subject: move $PATH change; use $HOST Signed-off-by: Florian Pritz --- .zshrc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.zshrc b/.zshrc index 36789b5..d1ccb3c 100644 --- a/.zshrc +++ b/.zshrc @@ -8,6 +8,11 @@ stty -echo ZDOTDIR="$HOME/.zsh" +export PATH=$HOME/bin:$PATH +if [ $UID -eq 0 ]; then + export PATH=/root/bin:$PATH +fi + # Colors {{{ #use these in functions/shell scripts export NC='\e[0m' @@ -782,7 +787,7 @@ zstyle ':completion:*:(ssh|scp):*' users [[ -r ~/.ssh/known_hosts ]] && _ssh_hosts=(${${${${${${${(f)"$(<$HOME/.ssh/known_hosts)"}:#[\|]*}%%\ *}%%,*}%%:*}#\[}%\]}) || _ssh_hosts=() [[ -r ~/.ssh/config ]] && _ssh_config_hosts=($(sed -rn 's/host\s+(.+)/\1/ip' "$HOME/.ssh/config" | grep -v "\*" )) || _ssh_config_hosts=() hosts=( - $(hostname) + $HOST "$_ssh_hosts[@]" $_ssh_config_hosts[@] localhost @@ -876,11 +881,6 @@ sysinfo #umask 077 stty -ctlecho -export PATH=$HOME/bin:$PATH -if [ $UID -eq 0 ]; then - export PATH=/root/bin:$PATH -fi - # }}} # Show again -- cgit v1.2.3-24-g4f1b