# zshrc 9.5.21, by Sean B. Palmer # http://inamidst.com/config/zshrc PS1=$(echo -n "\n%{\e[32m%}%n@%m %{\e[36m%}%~%{\e[0m%}\n$ ") PS2='> ' # Shell Events function precmd() { print -Pn "\e]0;%n@%m: %~\a" } umask 0077 function chpwd() { case $OLDPWD { $HOME/web/inamidst.com/www*) umask 0077;; } case $PWD { $HOME/web/inamidst.com/www*) umask 0022;; } } # ZSH Options setopt autocd autopushd pushdsilent pushdtohome setopt noclobber ignoreeof interactivecomments setopt extendedglob globdots # Variable Completion autoload -U compinit compinit -u # Key Bindings bindkey "\e[3~" delete-char # Tilde Directories eval "www=$HOME/web/inamidst.com/www" && : ~www # Aliases and Commands alias ls='ls -aF' alias wget='wget -c' alias cp='cp -i' alias mv='mv -i' alias now='echo $(date "+%e %B %Y, %H:%M")' function withcd() { # some magic from deltab (cd "$1" && shift && "$@") }