Add show_hidden and hide_hidden shell aliases

This commit is contained in:
2015-06-23 00:46:02 +01:00
parent 996ad1a41b
commit 986fdb96c7

View File

@@ -86,3 +86,16 @@ function extract () {
fi
}
alias ext=extract
# Show hidden files in Finder.
function show_files {
defaults write com.apple.finder AppleShowAllFiles YES
killall Finder "/System/Library/CoreServices/Finder.app"
}
# Don't show hidden files in Finder.
function hide_files {
defaults write com.apple.finder AppleShowAllFiles NO
killall Finder "/System/Library/CoreServices/Finder.app"
}