summaryrefslogtreecommitdiffstats
path: root/.zshrc
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2011-08-10 21:56:48 +0200
committerFlorian Pritz <bluewind@xinu.at>2011-08-10 21:56:48 +0200
commit784eb963c7d46133a43916ebb800049b0714207d (patch)
tree01a32567f22a2e401e6e07606dc3bd1f69dbeac8 /.zshrc
parent389438f85c3e3e3e97a4db3bbfc1ff61de2822c9 (diff)
downloaddotfiles-784eb963c7d46133a43916ebb800049b0714207d.tar.gz
dotfiles-784eb963c7d46133a43916ebb800049b0714207d.tar.xz
move $PATH change; use $HOST
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc12
1 files 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