From 986fdb96c7a701ca4b163a632ba1284f1b5c673c Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Tue, 23 Jun 2015 00:46:02 +0100 Subject: [PATCH] Add show_hidden and hide_hidden shell aliases --- shell/aliases.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/shell/aliases.sh b/shell/aliases.sh index a419de7..3496945 100644 --- a/shell/aliases.sh +++ b/shell/aliases.sh @@ -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" +}