From eaf74b253445f03a656a628ac0df04c3dacb91a3 Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Thu, 28 Jul 2011 18:20:36 -0400 Subject: [PATCH] Added metadata file removal to osx plugin. --- plugins/osx/osx.plugin.zsh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/plugins/osx/osx.plugin.zsh b/plugins/osx/osx.plugin.zsh index 0e436aa7..eb75a2da 100644 --- a/plugins/osx/osx.plugin.zsh +++ b/plugins/osx/osx.plugin.zsh @@ -1,8 +1,8 @@ # ------------------------------------------------------------------------------ # FILE: osx.plugin.zsh # DESCRIPTION: oh-my-zsh plugin file. -# AUTHOR: Sorin Ionescu (sorin.ionescu@gmail.com) -# VERSION: 1.0.1 +# AUTHOR: Sorin Ionescu +# VERSION: 1.0.2 # ------------------------------------------------------------------------------ @@ -96,3 +96,8 @@ function trash() { done IFS=$temp_ifs } + +function rm-osx-cruft() { + find ${@:-$PWD} \( -type f -name ".DS_Store" \) -o \( -type d -name '__MACOSX' \) -delete +} +