Skip to content

Instantly share code, notes, and snippets.

@mppatterson
Last active August 29, 2015 14:03
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 mppatterson/9fc5cf466b820dfc2b81 to your computer and use it in GitHub Desktop.
Save mppatterson/9fc5cf466b820dfc2b81 to your computer and use it in GitHub Desktop.
All of the bash aliases I use on a regular basis
function rails(){
bundle exec spring rails "$@"
}
function rake(){
bundle exec spring rake "$@"
}
function rspec(){
bundle exec spring rspec "$@"
}
alias ..='cd ..'
alias ...='cd ../../'
alias ....='cd ../../../'
alias .....='cd ../../../../'
# Alias "cd" to use "c" from humanism.sh
alias cd='c'
# Install by appending to bash_aliases
curl https://gist.githubusercontent.com/mppatterson/9fc5cf466b820dfc2b81/raw/cc733749f80b29f8dfa55e7058a740925ed6eb14/bash_aliases -o /tmp/spring_bash_aliases && cat /tmp/spring_bash_aliases >> ~/.bash_aliases && . ~/.bash_aliases && rm /tmp/spring_bash_aliases
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment