Skip to content

Instantly share code, notes, and snippets.

@aghyad
Created December 3, 2013 22:47
Show Gist options
  • Save aghyad/7778989 to your computer and use it in GitHub Desktop.
Save aghyad/7778989 to your computer and use it in GitHub Desktop.
Some useful bash profile aliases
alias glog="git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
alias mycukes= 'RAILS_ENV="development" bundle exec cucumber'
alias myspecs= 'RAILS_ENV="development" bundle exec rspec spec'
alias vim='vim +NERDTree'
alias rspecc='clear && bundle exec rspec'
alias drspecc='clear && RAILS_ENV=development bundle exec rspec'
alias mygit='git config --global user.name "SOME-NAME-HERE" && git config --global user.email SOME-EMAIL-HERE && echo "************" && echo "switched git user name to:" && git config user.name && echo "and git user email to:" && git config user.email && echo "************"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment