Skip to content

Instantly share code, notes, and snippets.

@larsenwork
Created June 29, 2015 22:21
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 larsenwork/64373c2616edf61aefc1 to your computer and use it in GitHub Desktop.
Save larsenwork/64373c2616edf61aefc1 to your computer and use it in GitHub Desktop.
.bash_profile

Open bash profile

alias profile='nano .bash_profile'

Hide/show hidden files in Finder

alias showFiles='defaults write com.apple.finder AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/Finder.app'
alias hideFiles='defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app'

Run a simple web server

alias server='python -m SimpleHTTPServer 8000'

Delete all screenshots

alias screenClean='find ~/Desktop -maxdepth 1 -name "Screen Shot*" -type f -delete'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment