Created
August 17, 2011 21:18
-
-
Save rcreasey/1152663 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
| ZSH_THEME_GIT_PROMPT_PREFIX="%{$reset_color%}" | |
| ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} " | |
| ZSH_THEME_GIT_PROMPT_DIRTY="%{$reset_color%} %{$fg[red]%}✗%{$reset_color%}" | |
| ZSH_THEME_GIT_PROMPT_CLEAN="%{$reset_color%} %{$fg[green]%}✔%{$reset_color%}" | |
| setopt prompt_subst | |
| local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})" | |
| RPS1="${return_code}" | |
| PROMPT='%(?,%{%F{cyan}%},%{%F{red}%})%m:%{%F{white}%}%~ %{%F{gray}%}$(rvm_prompt_info)%{$reset_color%} $(git_prompt_info)%#%{$reset_color%} ' |
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
| # shortcut to this dotfiles path is $DOTFILES | |
| export DOTFILES=$HOME/.dotfiles | |
| # If I have cinderella installed | |
| if [[ -d /Users/rcreasey/Developer/Cellar ]]; then | |
| PATH="/Users/rcreasey/Developer/bin:/Users/rcreasey/Developer/sbin:$PATH"; export PATH | |
| MANPATH="/Users/rcreasey/Developer/share/man:$MANPATH"; export MANPATH | |
| CFLAGS="-I/Users/rcreasey/Developer/include"; export CFLAGS | |
| CPPFLAGS="-I/Users/rcreasey/Developer/include"; export CPPFLAGS | |
| CXXFLAGS="-I/Users/rcreasey/Developer/include"; export CXXFLAGS | |
| LDFLAGS="-L/Users/rcreasey/Developer/lib"; export LDFLAGS | |
| NODE_PATH="/Users/rcreasey/Developer/lib/node"; export NODE_PATH | |
| export CONFIGURE_ARGS="--with-cflags='$CFLAGS' --with-ldflags='$LDFLAGS'" | |
| fi | |
| ############################################## | |
| # Load Oh-My-ZSH Stff | |
| ############################################## | |
| # Path to your oh-my-zsh configuration. | |
| export ZSH=$DOTFILES/zsh/oh-my-zsh | |
| # Set to the name theme to load. | |
| export ZSH_THEME="rcreasey" | |
| # Set to this to use case-sensitive completion | |
| # export CASE_SENSITIVE="true" | |
| # Comment this out to disable weekly auto-update checks | |
| # export DISABLE_AUTO_UPDATE="true" | |
| # Uncomment following line if you want to disable colors in ls | |
| # export DISABLE_LS_COLORS="true" | |
| # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) | |
| # Example format: plugins=(rails git textmate ruby lighthouse) | |
| plugins=(git textmate ruby rails) | |
| source $ZSH/oh-my-zsh.sh | |
| ############################################## | |
| # Custom | |
| ############################################## | |
| # your projects folder that we can `p [tab]` to | |
| export PROJECTS=~/projects/frameworks | |
| # your chef repo folder that we can `cr [tab]` to | |
| export CHEF_REPOS=~/projects/cookbooks | |
| # your code folder that we can `c [tab]` to | |
| export CODE=~/projects | |
| # source every .zsh file in this rep | |
| for config_file ($DOTFILES/*/*.zsh) source $config_file | |
| # use .localrc for SUPER SECRET CRAP that you don't | |
| # want in your public, versioned repo. | |
| if [[ -a ~/.localrc ]] | |
| then | |
| source ~/.localrc | |
| fi | |
| # initialize autocomplete here, otherwise functions won't be loaded | |
| autoload -U compinit | |
| compinit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment