summaryrefslogtreecommitdiff
path: root/plugins/osx/osx.plugin.zsh
diff options
context:
space:
mode:
authorAhmad Awais <mrahmadawais@gmail.com>2016-08-15 05:55:02 +0500
committerRobby Russell <robby@planetargon.com>2016-08-14 17:55:02 -0700
commit5d6c3501663e4a2779e3c529a8940da0d16dd115 (patch)
tree42481d1a21e365a9ddd1e6929882f12e2a482877 /plugins/osx/osx.plugin.zsh
parent341e83f6f2b45c80a4c555f1a0f04ff6acbc15b9 (diff)
downloadzsh-5d6c3501663e4a2779e3c529a8940da0d16dd115.tar.gz
zsh-5d6c3501663e4a2779e3c529a8940da0d16dd115.tar.bz2
zsh-5d6c3501663e4a2779e3c529a8940da0d16dd115.zip
Enhancement: Show/Hide OSX hidden files 💯 (#5275)
Diffstat (limited to 'plugins/osx/osx.plugin.zsh')
-rw-r--r--plugins/osx/osx.plugin.zsh4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/osx/osx.plugin.zsh b/plugins/osx/osx.plugin.zsh
index 4dbc75787..f69bd7e5d 100644
--- a/plugins/osx/osx.plugin.zsh
+++ b/plugins/osx/osx.plugin.zsh
@@ -260,3 +260,7 @@ EOF
esac
osascript -e "tell application \"iTunes\" to $opt"
}
+
+# Show/hide hidden files in the Finder
+alias showfiles="defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder"
+alias hidefiles="defaults write com.apple.finder AppleShowAllFiles -bool false && killall Finder"