浏览代码

OS X Helpers

Add helper aliases for show/hide files. Add helper alias to recursively delete
.DS_Store files.
Andrew Hodges 14 年之前
父节点
当前提交
18293cd724
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      plugins/osx/osx.plugin.zsh

+ 6 - 0
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~
 }