zsh aliases to show/hide hidden files in Finder

This commit is contained in:
Rajiv 2014-05-30 10:23:11 -07:00
parent dab810e27b
commit ba2328df0b

View File

@ -154,3 +154,7 @@ alias srdmt='spring rake db:migrate db:test:prepare'
alias sp='sprintly' alias sp='sprintly'
# spb = sprintly branch - create a branch automatically based on the bug you're working on # spb = sprintly branch - create a branch automatically based on the bug you're working on
alias spb="git checkout -b \`sp | tail -2 | grep '#' | sed 's/^ //' | sed 's/[^A-Za-z0-9 ]//g' | sed 's/ /-/g' | cut -d"-" -f1,2,3,4,5\`" alias spb="git checkout -b \`sp | tail -2 | grep '#' | sed 's/^ //' | sed 's/[^A-Za-z0-9 ]//g' | sed 's/ /-/g' | cut -d"-" -f1,2,3,4,5\`"
# 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'