umask 077 autoload -U colors;colors if [[ $(pgrep ssh-agent -U $(id -u) | wc -l) -eq 1 ]] && [ -f ${TMP}/ssh-agent ]; then eval `cat ${TMP}/ssh-agent` 1&> /dev/null else rm -f ${TMP}/ssh-agent if [[ $(which ssh-agent 1&> /dev/null) -eq 0 ]];then ssh-agent > ${TMP}/ssh-agent eval `cat ${TMP}/ssh-agent` ssh-add fi fi # make del-key work # found by using ^v - ESC bindkey "^[[3~" delete-char bindkey "^R" history-incremental-search-backward # use vi-style movement on the command line bindkey -v # complete parent directory via '..' zstyle ':completion:*' special-dirs .. #stolen from http://www.guckes.net/Setup/zshrc.mine zstyle ':completion:*:kill:*' command 'ps|head -1;ps x -u $USER -o pid,%cpu,tty,cputime,cmd' zstyle ':completion:*:kill:*' insert-ids single zstyle ':completion:*:*:kill:*' menu yes select zstyle ':completion:*:kill:*' force-list always zmodload zsh/datetime # enable display of addition VCS info for git and svn autoload -Uz vcs_info && vcs_info zstyle ':vcs_info:*' disable p4 hg bzr cdv darcs mtn svk tla # [tek@basra][~/nobackup/contrib]% vcs_infoi # zsh: correct 'vcs_infoi' to 'vcs_info' [nyae]? y # [tek@basra][~/nobackup/contrib]% # [tek@basra][~/nobackup/contrib]% # [tek@basra][~/nobackup/contrib]% echo # [tek@basra][~/nobackup/contrib]% echo ${vcs_info_msg_0_} # :( # (git)-[2.7]- # [tek@basra][~/nobackup/contrib]% #