Skip to content

Instantly share code, notes, and snippets.

@featherplain
Last active August 29, 2015 14:10
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 featherplain/896dca2786ab76bf788a to your computer and use it in GitHub Desktop.
Save featherplain/896dca2786ab76bf788a to your computer and use it in GitHub Desktop.
bash config
# Aliases
alias sudo="sudo "
alias tr="trash"
alias gemupdate="sudo update_rubygems; sudo gem update; sudo gem cleanup"
alias brewupdate="brew update; brew upgrade; brew cleanup"
alias npmupdate="npm cache clear; npm update -g"
alias bashconf="vi ~/.bash_profile"
# Change directory
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
# List segments
alias lsl="ls -l"
alias lsa="ls -la"
# Project aliases
alias prdir="cd ~/projects"
alias myproject="cd ~/projects/myproject"
alias myprojectup="cd ~/projects/myproject; gulp"
alias yourwptheme="cd ~/path/to/wordpress/wp-content/themes/yourtheme"
alias yourwpthemeup="cd ~/path/to/wordpress/wp-content/themes/yourtheme; vagrant up; gulp"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment