Skip to content

Instantly share code, notes, and snippets.

@data-enhanced
Last active December 26, 2015 04:49
Show Gist options
  • Select an option

  • Save data-enhanced/7095733 to your computer and use it in GitHub Desktop.

Select an option

Save data-enhanced/7095733 to your computer and use it in GitHub Desktop.
Some of my favorite Terminal aliases

Some of the Aliases I use in my .bash_profile for OS X Terminal:

# Open a file in Sublime Text 2
alias subl='open -a Sublime\ Text\ 2'

#Edit Bash Profile in Sublime Text 2
alias bashprof='subl .bash_profile'

# Open a file in desired browser
alias ff='open -a Firefox'
alias chr='open -a Google\ Chrome'
alias saf='open -a Safari'

# Open file in Firefox, Chrome, and Safari
function testall { ff $1; chr $1; saf $1; }

# Shortcuts to directories
alias home='cd ~/'
alias nodeplay='cd ~/Nodeplay'
alias github='cd ~/Github'
alias sites='cd ~/Sites'

# Change to and list contents of a directory
function cdl { cd $1; ls; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment