From f53e3dd7beca1530b01f4ca71c256afe0aa36e8c Mon Sep 17 00:00:00 2001 From: Bachynin Ivan Date: Mon, 10 Dec 2018 01:33:08 +0200 Subject: [PATCH] add "show/hide hidden files" functions --- modules/osx/README.md | 2 ++ modules/osx/functions/hidefiles | 3 +++ modules/osx/functions/showfiles | 3 +++ 3 files changed, 8 insertions(+) create mode 100644 modules/osx/functions/hidefiles create mode 100644 modules/osx/functions/showfiles diff --git a/modules/osx/README.md b/modules/osx/README.md index 1f93a2c3..abb8c923 100644 --- a/modules/osx/README.md +++ b/modules/osx/README.md @@ -36,6 +36,8 @@ Functions - `osx-rm-dir-metadata` deletes .DS\_Store, \_\_MACOSX cruft. - `osx-ls-download-history` displays the macOS download history. - `osx-rm-download-history` deletes the macOS download history. + - `showfiles` show hidden files in Finder. + - `hidefiles` hide hidden files from Finder. Authors ------- diff --git a/modules/osx/functions/hidefiles b/modules/osx/functions/hidefiles new file mode 100644 index 00000000..aa04325e --- /dev/null +++ b/modules/osx/functions/hidefiles @@ -0,0 +1,3 @@ +# Hide hidden files from Finder. +defaults write com.apple.finder AppleShowAllFiles NO +killall Finder diff --git a/modules/osx/functions/showfiles b/modules/osx/functions/showfiles new file mode 100644 index 00000000..603d2822 --- /dev/null +++ b/modules/osx/functions/showfiles @@ -0,0 +1,3 @@ +# Show hidden files in Finder. +defaults write com.apple.finder AppleShowAllFiles YES +killall Finder