Last active
December 19, 2015 22:38
-
-
Save shortcircuit3/6028400 to your computer and use it in GitHub Desktop.
This file contains 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
## A modification of @stevenosloan bash profile | |
## https://github.com/stevenosloan | |
# Add brew path. | |
export PATH=/usr/local/bin:/usr/local/sbin:$PATH | |
export PATH=/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin:$PATH | |
export PATH=./bin:$PATH | |
export EDITOR=subl | |
## git completion (run brew install bash-completion first) | |
if [ -f `brew --prefix`/etc/bash_completion ]; then | |
. `brew --prefix`/etc/bash_completion | |
fi | |
## branch name in prompt | |
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ \[\1\]/' | |
} | |
function proml { | |
local GREEN="\[\033[0;32m\]" | |
local DEFAULT="\[\033[0m\]" | |
local CYAN="\[\033[1;36m\]" | |
local RED="\[\033[1;31m\]" | |
PS1="$CYAN\n\W\$(parse_git_branch)$RED\n⚡ $DEFAULT" | |
} | |
proml | |
alias sb=subl | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* | |
# {{{ | |
# Node Completion - Auto-generated, do not touch. | |
shopt -s progcomp | |
for f in $(command ls ~/.node-completion); do | |
f="$HOME/.node-completion/$f" | |
test -f "$f" && . "$f" | |
done | |
# }}} | |
## | |
# Your previous /Users/alexmiles/.bash_profile file was backed up as /Users/alexmiles/.bash_profile.macports-saved_2012-12-10_at_15:26:08 | |
## | |
# Add git completion installed via homebrew. | |
source /usr/local/etc/bash_completion.d/git-completion.bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment