]> git.rmz.io Git - dotfiles.git/blobdiff - zshrc
add conkyrc
[dotfiles.git] / zshrc
diff --git a/zshrc b/zshrc
index a181dbd5f89195985026376a1cf92f214fb2322c..c52d8b082805442530d3da5d78e7ab8c4f32bc73 100644 (file)
--- a/zshrc
+++ b/zshrc
@@ -11,7 +11,8 @@ setopt extended_history
 # misc
 setopt beep
 setopt extendedglob
-setopt nomatch
+setopt csh_nullglob # if glob does not match, remove pattern, if no glob matches print error
+setopt numeric_glob_sort # sort numerically not lexically
 setopt noclobber    # don't allow overwriting files with '>', use '>!' instead
 setopt notify
 setopt rcquotes     # echo 'don''t'; prints don't
@@ -42,7 +43,9 @@ autoload -U ${fpath[1]}/*(:t)   # loads all functions in the first element of fp
 
 # set up prompt
 autoload -U colors && colors
-PROMPT="%(?..%{$fg_bold[white]%}[%?])%{$reset_color%}[%D{%k:%M} %n@%{$fg[green]%}%m%{$reset_color%}]%# "
+[[ $(hostname) == "tardis" ]] && hostcolor=red
+[[ $(hostname) == "shada" ]]  && hostcolor=green
+PROMPT="%(?..%{$fg_bold[white]%}[%?])%{$reset_color%}[%D{%k:%M} %n@%{$fg[$hostcolor]%}%m%{$reset_color%}]%# "
 RPROMPT="%{$fg[green]%}%~%{$reset_color%}"
 
 # make cd act like pushd
@@ -66,3 +69,4 @@ hash -d src=~/src
 hash -d chroot_testing=/buildsystem/testing/buildroot
 hash -d chroot_master=/buildsystem/master/buildroot
 hash -d chroot_lib32=/buildsystem/lib32/buildroot
+hash -d wineprefixes=/mnt/sdd5/wineprefixes