#-------Completions-------------------- zstyle ':completion:*:cd:*' ignore-parents parent pwd zstyle ':completion:*:*:kill:*' menu yes select zstyle ':completion:*:kill:*' force-list always #-------Zsh options-------------------- autoload -U compinit compinit setopt autocd # push directories visited automatically onto stack setopt autopushd pushdminus pushdsilent pushdtohome pushdignoredups setopt appendhistory setopt extendedglob setopt hashcmds hashdirs setopt histignoredups setopt incappendhistory setopt printexitvalue setopt sharehistory #-------Prompt ------------------------ export PS1='[%m: %c] ' #-------History------------------------ HISTFILE=~/.zshistory SAVEHIST=3000 HISTSIZE=3000 #-------Path--------------------------- # snipped... Not applicable outside CSL #------------------------------------------------------------------------------ # Personal Aliases #------------------------------------------------------------------------------ # the term alias sets or resets your terminal type. alias ...='../..' alias ....='../../..' alias term='set noglob; eval `tset -s \!\!:1`; unset noglob' alias msgs='msgs -p' # pipe long message through the paging program (more) alias logout='exit' # make "logout" work in "script" too alias cp='cp -i' alias mv='mv -i' alias rm='rm -i' alias ls='ls -bF --color' # "b" will show control characters as '?' # "F" will show a trailing "/" after directories # and a "*" after executables alias sl='ls' alias gnome-terminal='gnome-terminal --geometry=100x60' alias dirs='dirs -p' alias Make=make alias suniq='sort | uniq -c' alias print='/s/std/bin/print' #------------------------------------------------------------------------------ # set editor mode to vi and update key bindings #------------------------------------------------------------------------------ bindkey -v # Piping shortcuts bindkey -s '^|l' " | less\n" # c-| l pipe to less bindkey -s '^|g' " | grep ""^[OD" # c-| g pipe to grep bindkey -s '^|a' " | awk ‘{print $}’^[OD^[OD" # c-| a pipe to awk bindkey -s '^|w' " | wc -l\n" # c-| l pipe to less # ^r, ^s for incremental search bindkey '^r' history-incremental-search-backward bindkey '^s' history-incremental-search-forward # ^k cycle through the list of partial matches bindkey '^k' menu-complete bindkey '^j' reverse-menu-complete bindkey '^p' up-history bindkey '^n' down-history # Keycodes for Home and End keys. Might vary depending on your terminal. bindkey '^[OH' vi-beginning-of-line bindkey '^[OF' vi-end-of-line bindkey '^[[1~' vi-beginning-of-line bindkey '^[[4~' vi-end-of-line