X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/3e15c7e178bf62658a23570a628ff6e989d32ea9..295ba2cb7f52a170d0daab1ce337be3f040597b0:/zshrc diff --git a/zshrc b/zshrc index a181dbd..c52d8b0 100644 --- 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