diff options
author | Florian Pritz <bluewind@xinu.at> | 2011-08-10 21:56:48 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2011-08-10 21:56:48 +0200 |
commit | 784eb963c7d46133a43916ebb800049b0714207d (patch) | |
tree | 01a32567f22a2e401e6e07606dc3bd1f69dbeac8 | |
parent | 389438f85c3e3e3e97a4db3bbfc1ff61de2822c9 (diff) | |
download | dotfiles-784eb963c7d46133a43916ebb800049b0714207d.tar.gz dotfiles-784eb963c7d46133a43916ebb800049b0714207d.tar.xz |
move $PATH change; use $HOST
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r-- | .zshrc | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 |