Find file
Fetching contributors…
Cannot retrieve contributors at this time
51 lines (37 sloc) 990 Bytes
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
. ~/.secrets
export JRUBY_OPTS=--1.9
export RBXOPT=-X19
# User specific aliases and functions
export PATH="$HOME/bin:$PATH"
export EDITOR="gvim -v"
export TERM=xterm-256color
alias git=hub
alias g=git
alias gs="git status"
alias gd="git diff"
alias gc="git commit"
alias gca="git commit --amend -C HEAD"
alias gg="git grep"
alias be="bundle exec"
alias top=htop
alias vim="gvim -v"
alias t="ruby -Itest"
alias irb="pry"
alias dcr="docker-compose restart"
parse_git_branch() {
branch=$(/usr/bin/git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/')
if [ -n "$branch" ]; then
echo -ne ":$branch";
fi
}
PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]$(parse_git_branch)\[\033[00m\]\$ '
complete -cf sudo
# This is necessary to stop direnv invoking rbenv and fucking with the PATH
export DIRENV_RUBY="/usr/bin/ruby"
eval `direnv hook $0`
chruby ruby-2.3.0