summaryrefslogtreecommitdiff
path: root/plugins/osx/osx.plugin.zsh
diff options
context:
space:
mode:
authorAndrew Hodges <betawaffle@gmail.com>2011-05-28 11:27:50 -0400
committerAndrew Hodges <betawaffle@gmail.com>2011-05-28 11:27:50 -0400
commit18293cd724224282d6ca473fcbe6e7439d3eac0c (patch)
treebc118e463ccd6f0a5ab67d3177442da0f091b145 /plugins/osx/osx.plugin.zsh
parentd72b9c5ec5d55765998bb301b3425fbe84012c1f (diff)
downloadzsh-18293cd724224282d6ca473fcbe6e7439d3eac0c.tar.gz
zsh-18293cd724224282d6ca473fcbe6e7439d3eac0c.tar.bz2
zsh-18293cd724224282d6ca473fcbe6e7439d3eac0c.zip
OS X Helpers
Add helper aliases for show/hide files. Add helper alias to recursively delete .DS_Store files.
Diffstat (limited to 'plugins/osx/osx.plugin.zsh')
-rw-r--r--plugins/osx/osx.plugin.zsh6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/osx/osx.plugin.zsh b/plugins/osx/osx.plugin.zsh
index 81eed5e92..a65ca642a 100644
--- a/plugins/osx/osx.plugin.zsh
+++ b/plugins/osx/osx.plugin.zsh
@@ -1,3 +1,9 @@
+alias showfiles='defaults write com.apple.finder AppleShowAllFiles TRUE; killall Finder'
+alias hidefiles='defaults write com.apple.finder AppleShowAllFiles FALSE; killall Finder'
+
+# Recursively delete .DS_Store files
+alias rm-dsstore="find . -name '*.DS_Store' -type f -delete"
+
function savepath() {
pwd > ~/.current_path~
}