Skip to content

Instantly share code, notes, and snippets.

@deadlyicon deadlyicon/.bash_profile
Last active Jan 10, 2017

Embed
What would you like to do?
.bashrc
[[ -r ~/.bashrc ]] && . ~/.bashrc
export HISTCONTROL=ignoredups:erasedups
export HISTSIZE=100000
shopt -s cmdhist
shopt -s histappend # this ensures history is written
shopt -s lithist
bind "set completion-ignore-case on" # ignore care on tab completion in bash
bind 'set match-hidden-files off' # doesnt tab complete hidden files like .svn files
# this is for npm
export PKG_CONFIG_PATH=/usr/X11/lib/pkgconfig
export GIT_PS1_SHOWDIRTYSTATE=true
export GIT_PS1_SHOWUNTRACKEDFILES=true
if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
fi
source /usr/local/etc/bash_completion.d/git-completion.bash
source /usr/local/etc/bash_completion.d/git-prompt.sh
source /usr/local/etc/bash_completion.d/npm
export EDITOR='atom -w'
export GIT_EDITOR='atom -w'
export NODE_ENV=development
export PATH="./node_modules/.bin:$PATH"
alias git=hub
alias copy=pbcopy
alias paste=pbpaste
export PROMPT_COLOR=34
export PS1=' \[\033[4;1;${PROMPT_COLOR}m\]\w\[\033[0m\]$(unalias git; __git_ps1 " $(git config --get user.email) (%s)") \n$ '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.