Skip to content

Instantly share code, notes, and snippets.

@jaredatron
Last active January 10, 2017 21:31
Show Gist options
  • Save jaredatron/211500606527ea15676fb58118de5eec to your computer and use it in GitHub Desktop.
Save jaredatron/211500606527ea15676fb58118de5eec to your computer and use it in GitHub Desktop.
.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