diff options
Diffstat (limited to '.zshrc')
-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 |