alex@alex:~% cat .zshrc source .profile # Comment in the above and uncomment this below for a color prompt export PS1="$(print '%{\e[1;32m%}%n@%m%{\e[0m%}:%{\e[1;34m%}%~%{\e[0m%}')%# " # End of lines configured by zsh-newuser-install # The following lines were added by compinstall zstyle :compinstall filename '/Users/alex/.zshrc' autoload -Uz compinit compinit zmodload zsh/complist setopt menucomplete zstyle ':completion:*:default' menu yes select zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z} m:{а-я}={А-Я}' zstyle ':completion:*' use-cache on zstyle ':completion:*' cache-path ~/.zsh_cache bindkey -M menuselect "/" accept-and-infer-next-history zstyle ':completion:*:processes' command 'ps xuf' zstyle ':completion:*:processes' sort false zstyle ':completion:*:processes' menu yes=long-list select zstyle ':completion:*:processes-names' command 'ps xho command' zstyle ':completion:*:default' list-colors ${LS_COLORS} setopt share_history # use vi mode bindkey -v # go back a word with option arrow (staying in insert mode) bindkey -M viins '^[[D' vi-backward-word # go forward a word with option arrow (staying in insert mode) bindkey -M viins '^[[C' vi-forward-word # use home and end to go to beginning and end of the line bindkey -M viins '^[[H' vi-beginning-of-line bindkey -M viins '^[[F' vi-end-of-line # use delete as forward delete bindkey -M viins '^[[3~' vi-delete-char alex@alex:~% cat .profile # # Your previous .profile (if any) is saved as .profile.mpsaved # Setting the path for MacPorts. export PATH=/opt/local/bin:/opt/local/sbin:/usr/local/bin:$PATH export MANPATH=/opt/local/share/man:$MANPATH export LC_ALL=en_US.UTF-8 export C_INCLUDE_PATH=/opt/local/include:$C_INCLUDE_PATH export CPLUS_INCLUDE_PATH=/opt/local/include:/opt/local/include/mysql5:$CPLUS_INCLUDE_PATH export LIBRARY_PATH=/opt/local/lib:$LIBRARY_PATH eval "`dircolors -b`" alias ls='ls --color=auto'