Skip to content

Instantly share code, notes, and snippets.

@scott-laursen
Created February 6, 2013 07:06
Show Gist options
  • Select an option

  • Save scott-laursen/4720855 to your computer and use it in GitHub Desktop.

Select an option

Save scott-laursen/4720855 to your computer and use it in GitHub Desktop.
alias server='open http://localhost:8000 && python -m SimpleHTTPServer'
alias tree='find . -print | sed -e "s;[^/]*/;|____;g;s;____|; |;g"'
# http://mac.tutsplus.com/tutorials/terminal/speed-up-your-terminal-workflow-with-command-aliases-and-profile/
# The alias that takes me here - to editing these very aliases
alias edit_profile="open -e ~/.bash_profile"
# This alias reloads this file
alias reload_profile='. ~/.bash_profile'
# I do a lot of web development, so I need to edit these non-owned files fairly often
alias edit_hosts="edit /etc/hosts"
# Hide and show hidden files
alias hiddenfiles_hide="defaults write com.apple.finder AppleShowAllFiles FALSE && killall Finder"
alias hiddenfiles_show="defaults write com.apple.finder AppleShowAllFiles TRUE && killall Finder"
# Open the iPhone emulator
alias iphone="open /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app"
# Start the browserstack tunnel - add parameters for specifics i.e. localhost,8000,0 for localhost:8000
alias browserstack="java -jar ~/Projects/lib/browserstack/BrowserStackTunnel.jar <INSERT SERIAL HERE>"
# alias to Sublime Text 2 and 3
alias st="/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl"
alias st3="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"
# alias to node-webkit
alias nw="/Applications/node-webkit.app/Contents/MacOS/node-webkit"
### Added by the Heroku Toolbelt
export PATH="/usr/local/heroku/bin:$PATH"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment