diff options
author | Andrew Hodges <betawaffle@gmail.com> | 2011-05-28 11:27:50 -0400 |
---|---|---|
committer | Andrew Hodges <betawaffle@gmail.com> | 2011-05-28 11:27:50 -0400 |
commit | 18293cd724224282d6ca473fcbe6e7439d3eac0c (patch) | |
tree | bc118e463ccd6f0a5ab67d3177442da0f091b145 /plugins/osx/osx.plugin.zsh | |
parent | d72b9c5ec5d55765998bb301b3425fbe84012c1f (diff) | |
download | zsh-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.zsh | 6 |
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~ } |