Last active
December 20, 2015 03:39
-
-
Save STRd6/0f73e18c9abb5aea63f3 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
| YELLOW="\[\033[0;33m\]" | |
| GRAY="\[\033[0;34m\]" | |
| RESET="\033[0;00m" | |
| if [ -z "$COMP_SYM" ]; then | |
| COMP_SYM="♥" | |
| fi | |
| PS1="\n\! \[\`if [[ \$? = "0" ]]; then echo '\e[32m\h\e[0m'; else echo '\e[31m\h\e[0m' ; fi\`\]:\w$YELLOW"'`__git_ps1`'"$GRAY \@$RESET\n$COMP_SYM " |
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
| # Bash Completion | |
| if [ -f $(brew --prefix)/etc/bash_completion ]; then | |
| . $(brew --prefix)/etc/bash_completion | |
| fi | |
| readIfPresent() { | |
| if [ -f $1 ]; then | |
| source $1 | |
| fi | |
| } | |
| # Add bash aliases. | |
| readIfPresent ~/.bash_aliases | |
| readIfPresent ~/.bash_prompt | |
| # Append commands to the bash command history file (~/.bash_history) | |
| # instead of overwriting it. | |
| shopt -s histappend | |
| # Append commands to the history every time a prompt is shown, | |
| # instead of after closing the session. | |
| PROMPT_COMMAND='history -a' | |
| export HISTFILESIZE=10000 | |
| export HISTSIZE=10000 | |
| # Use Sublime Text for Editor | |
| export EDITOR='subl -w' | |
| # colors? | |
| export CLICOLOR=1 | |
| # use yellow for directories | |
| export LSCOLORS=dxfxcxdxbxegedabagacad | |
| # Android | |
| export ANDROID_HOME="/Applications/android-sdk-macosx/" | |
| export PATH="/Applications/android-sdk-macosx/tools:/Applications/android-sdk-macosx/platform-tools:$PATH" | |
| # My bins | |
| export PATH="/Users/daniel/bin:$PATH" | |
| # Node Package Manager | |
| export PATH="/usr/local/share/npm/bin:$PATH" | |
| ### Added by the Heroku Toolbelt | |
| export PATH="/usr/local/heroku/bin:$PATH" | |
| [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment