Created
June 1, 2010 23:33
-
-
Save cpm/421688 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Lines configured by zsh-newuser-install | |
HISTFILE=~/.histfile | |
HISTSIZE=1000 | |
SAVEHIST=1000 | |
setopt appendhistory autocd beep extendedglob nomatch notify | |
bindkey -e | |
# End of lines configured by zsh-newuser-install | |
# The following lines were added by compinstall | |
zstyle :compinstall filename '/home/cpm/.zshrc' | |
autoload -Uz compinit | |
compinit | |
# End of lines added by compinstall | |
setopt prompt_subst | |
autoload -Uz vcs_info | |
zstyle ':vcs_info:*' actionformats \ | |
'%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{3}|%F{1}%a%F{5}]%f ' | |
zstyle ':vcs_info:*' formats \ | |
'%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{5}]%f ' | |
zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{3}%r' | |
zstyle ':vcs_info:*' enable git cvs svn | |
# or use pre_cmd, see man zshcontrib | |
vcs_info_wrapper() { | |
vcs_info | |
if [ -n "$vcs_info_msg_0_" ]; then | |
echo "%{$fg[grey]%}${vcs_info_msg_0_}%{$reset_color%}$del" | |
fi | |
} | |
RPROMPT=$'$(vcs_info_wrapper)' | |
autoload -U colors; colors | |
PS1="%n%{$fg_bold[black]%}@%{$reset_color%}%{$fg[red]%}%m%{$reset_color%} %{$fg[yellow]%}%~%{$reset_color%}: " | |
export RUBYLESS_PATH="$PATH" | |
use_ruby19() { | |
export PATH="$HOME/local/ruby-1.9.1-p378/bin:$RUBYLESS_PATH" | |
which ruby | |
} | |
use_ruby18() { | |
export PATH="$HOME/local/ruby-1.8.7-p248/bin:$RUBYLESS_PATH" | |
which ruby | |
} | |
use_ruby18 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment