Skip to content

Instantly share code, notes, and snippets.

@mzaragoza
Created December 15, 2016 12:25
Show Gist options
  • Save mzaragoza/1990ee27544d314905d1ff45de151e89 to your computer and use it in GitHub Desktop.
Save mzaragoza/1990ee27544d314905d1ff45de151e89 to your computer and use it in GitHub Desktop.
# ~/.bashrc
# vim:set ft=sh sw=2 sts=2:
source "$HOME/.hashrc"
# Store 10,000 history entries
export HISTSIZE=10000
# Don't store duplicates
export HISTCONTROL=erasedups
# Append to history file
shopt -s histappend
VISUAL=vim
EDITOR="$VISUAL"
LESS="FRX"
RI="--format ansi -T"
PSQL_EDITOR='vim -c"setf sql"'
CLICOLOR=1
LSCOLORS=gxgxcxdxbxegedabagacad
export VISUAL EDITOR LESS RI PSQL_EDITOR CLICOLOR LSCOLORS
if [ -t 1 ]; then
bind 'set bind-tty-special-chars off'
bind '"\ep": history-search-backward'
bind '"\en": history-search-forward'
bind '"\C-w": backward-kill-word'
bind '"\C-q": "%-\n"'
fi
export HISTIGNORE="%*"
[ -z "$PS1" ] || stty -ixon
[ -z "$PS1" ] || export PS1="\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;36m\]\w\[\033[00m\]\$(git_prompt_info '(%s)')$ "
if [ -f '/usr/local/etc/bash_completion.d/git-completion.bash' ]; then
source '/usr/local/etc/bash_completion.d/git-completion.bash'
fi
[ ! -f "$HOME/.bashrc.local" ] || . "$HOME/.bashrc.local"
### Added by the Heroku Toolbelt
export PATH="/usr/local/heroku/bin:$PATH"
# added by travis gem
[ -f /Users/moiseszaragoza/.travis/travis.sh ] && source /Users/moiseszaragoza/.travis/travis.sh
export NVM_DIR="/Users/moiseszaragoza/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment