Skip to content

Instantly share code, notes, and snippets.

@ToniRib
Created January 7, 2016 15:52
Show Gist options
  • Save ToniRib/9db8d71729a8ade724aa to your computer and use it in GitHub Desktop.
Save ToniRib/9db8d71729a8ade724aa to your computer and use it in GitHub Desktop.
Current bash profile
# Enable color alias
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
alias ls='ls -lGFah'
# Enable git aliases
alias gc='git commit'
alias ga='git add'
alias gs='git status'
alias gp='git push'
alias gpom='git push origin master'
# Other aliases
alias cdp='cd ~/turing/projects'
alias cdt='cd ~/turing'
alias cdr='cd ~/reactJS/starter-files'
alias a.='atom .'
# Rails alias
alias rs='rails s'
# Add sublime text support
export PATH=$PATH:/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl
# Enable tab completion
source ~/git-completion.bash
# colors!
green="\[\033[0;32m\]"
blue="\[\033[0;34m\]"
purple="\[\033[0;35m\]"
yellow="\[\033[0;33m\]"
reset="\[\033[0;m\]"
# Change command prompt
source ~/git-prompt.sh
export GIT_PS1_SHOWDIRTYSTATE=1
# '\u' adds the name of the current user to the prompt (removed this)
# '\$(__git_ps1)' adds git-related stuff
# '\W' adds the name of the current directory
export PS1="$blue\W$purple\$(__git_ps1) $green\$(~/.rvm/bin/rvm-prompt)$yellow ➾ $reset"
export PATH=/opt/bin:$PATH
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment