Code:Zshrc

My .zshrc file. Definitions of local variables for use in the zsh shell. See also Shell configuration files.

unlimit limit stack 8192 limit core 0 limit -s umask 022 source ~/.zalias source ~/.zshcompl PROMPT="%B[%{${fg[red]}%}%n%{${fg[white]}%}@%{${fg[silver]}%}%m%{${fg[white]}%}]%b %3~%# " RPROMPT="%B[%b%T%B]%b" HISTSIZE=1000 DIRSTACKSIZE=20 if which dircolors | grep "^/" > /dev/null 2>&1; then if [ -d /etc/DIR_COLORS ]; then eval `dircolors /etc/DIR_COLORS -b --sh` else eval `dircolors --sh` fi else export LS_COLORS="no=00:fi=00:di=01;36:" fi autoload colors zsh/terminfo autoload -U zmv bindkey -e # emacs-like mode bindkey "^A" beginning-of-line bindkey "^E" end-of-line bindkey "^B" backward-word bindkey "^N" forward-word bindkey "^?" backward-delete-char bindkey "^[[3~" delete-char HISTFILE=$HOME/.zshhistory HISTSIZE=3000 SAVEHIST=3000
 * 1) User-defined zshrc file for interactive zsh shells.
 * 2) Typically contains definitions of local variables. For environment variables, use .zprofile
 * 3) equivalent to ~/.cshrc and ~/.bashrc for csh/tcsh and sh/bash respectively.
 * 1) Search path for the cd command
 * 2) cdpath=(.. ~)
 * 1) Use hard limits, except for a smaller stack and no core dumps
 * 1) Set default permission to rwxr-xr-x or rw-r--r--
 * 1) Set prompts
 * 2) PROMPT='%m%# '   # default prompt
 * 3) RPROMPT=' %~'    # prompt for right side of screen
 * 1) Some environment variables
 * 1) Evaluate dircolors
 * 1) set -x  # Display executed commands (turn of with set +x)
 * 2) setopt NO_BEEP
 * 3) setopt CORRECT
 * 4) setopt PROMPT_SUBST
 * 5) unsetopt IGNORE_EOF
 * 6) setopt PRINT_EXIT_VALUE
 * 1) See man zshmodules for info on these modules
 * 1) zmv is a programmable mv
 * 1) zmv "programmable rename"
 * 2) Replace spaces in filenames with a underline
 * 3) $ zmv '* *' '$f:gs/ /_'
 * 4) Change the suffix from *.sh to *.pl
 * 5) $ zmv -W '*.sh' '*.pl'
 * 6) lowercase/uppercase all files/directories
 * 7) $ zmv '(*)' '${(L)1}' # lowercase
 * 8) $ zmv '(*)' '${(U)1}' # uppercase
 * 1) Use built-in prompts (see "prompt -h" for info)
 * 2) autoload -U promptinit
 * 3) promptinit
 * 1) Default key-bindings, I can't live without ;-)
 * 1) XTerm Title process showing.
 * 2) case $TERM in (xterm*|rxvt|screen)
 * 3)        precmd  { print -Pn "\e]0;%n@%m: %~\a"
 * 4)                    echo -n ${(l:$COLUMNS:::):-}
 * 5)                  }
 * 6)        preexec  { print -Pn "\e]0;%n@%m: $3\a" }
 * 7) esac
 * 1) esac
 * 1) History saving through sessions