Last active
January 10, 2017 21:31
-
-
Save jaredatron/211500606527ea15676fb58118de5eec to your computer and use it in GitHub Desktop.
.bashrc
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
[[ -r ~/.bashrc ]] && . ~/.bashrc |
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
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