Skip to content

Instantly share code, notes, and snippets.

@jsimpson
Created March 3, 2020 22:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsimpson/70bbdf71edccbd9f8d10214ffe77c8d8 to your computer and use it in GitHub Desktop.
Save jsimpson/70bbdf71edccbd9f8d10214ffe77c8d8 to your computer and use it in GitHub Desktop.
export PATH="/usr/local/opt/coreutils/libexec/gnubin:/usr/local/bin:$PATH"
export MANPATH="/usr/local/opt/coreutils/libexec/gnuman:$MANPATH"
HISTCONTROL=$HISTCONTROL${HISTCONTROL+:}ignoredups
HISTCONTROL=ignoreboth
export HISTIGNORE="&:[ ]*:exit"
shopt -s histappend
export HISTFILE=~/.long_history
export HISTSIZE=9999
export HISTFILESIZE=9999
export AUTOFEATURE=true autotest
RED="\[\033[0;31m\]"
GREEN="\[\033[1;32m\]"
BLUE="\[\033[1;34m\]"
YELLOW="\[\033[0;33m\]"
CLEAR="\[\033[00m\]"
#source ~/.git-completion.bash
#GIT_PS1_SHOWDIRTYSTATE=true
#export PS1="${BLUE}\u@mba:${GREEN}\W${BLUE}$(__git_ps1)${CLEAR} \$ "
export PS1="$BLUE\u@mba:$GREEN\W$CLEAR \$ "
# enable bash completion in interactive shells
if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
fi
# enable colors for ls, etc...
if [[ -f ~/.dircolors ]]; then
eval `dircolors -b ~/.dircolors`
else
eval "`dircolors -b`"
alias ls='ls --color=auto'
alias grep='grep -Hni --color=auto '
alias egrep='egrep -Hni --color=auto '
fi
export EDITOR=/usr/bin/vim
alias grep="grep --color=always"
alias egrep="egrep --color=always"
alias railsdb="bundle exec rake db:drop && bundle exec rake db:create && bundle exec rake db:migrate && bundle exec rake db:seed"
function journal() {
mkdir -p ~/journal/`date +%Y`
$EDITOR ~/journal/`date +%Y`/`date +%m-%d`.md
}
alias j=journal
source ~/.aliases
alias tmux="TERM=screen-256color-bce tmux"
eval "$(rbenv init -)"
export PATH="/usr/local/opt/openssl/bin:$PATH"
export PATH="~/bin:$PATH"
if [ -f ~/.config/exercism/exercism_completion.bash ]; then
. ~/.config/exercism/exercism_completion.bash
fi
# Go development
export GOPATH="${HOME}/.go"
export GOROOT="$(brew --prefix golang)/libexec"
export PATH="$PATH:${GOPATH}/bin:${GOROOT}/bin"
test -d "${GOPATH}" || mkdir "${GOPATH}"
test -d "${GOPATH}/src/github.com" || mkdir -p "${GOPATH}/src/github.com"
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment