From 60f7ab8f801a415aedca783dc37ba3b0bd55a03e Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Fri, 20 Jan 2012 19:52:08 -0500 Subject: [PATCH] Fixed rm-osx-cruft and updated the plugin README. --- plugins/osx/README.md | 8 +++++--- plugins/osx/init.zsh | 5 ++++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/plugins/osx/README.md b/plugins/osx/README.md index 766d233..3c12b4d 100644 --- a/plugins/osx/README.md +++ b/plugins/osx/README.md @@ -1,4 +1,4 @@ -Provides the following commands. +Provides the following commands: - `tab` create a new tab (works in both _Terminal_ and _iTerm_). - `pfd` print current _Finder_ directory. @@ -6,6 +6,8 @@ Provides the following commands. - `cdf` cd to current _Finder_ directory. - `pushdf` pushd to current _Finder_ directory. - `ql` quick look at files. -- `manp` Open MAN pages in _Preview.app_. -- `trash` Move files and folders to _Trash_. +- `manp` open MAN pages in _Preview.app_. +- `manb` open MAN pages in _Bwana.app_. +- `trash` move files and folders to _Trash_. +- `rm-osx-cruft` delete .DS_Store, \__MACOSX cruft. diff --git a/plugins/osx/init.zsh b/plugins/osx/init.zsh index 73b20e3..da60837 100644 --- a/plugins/osx/init.zsh +++ b/plugins/osx/init.zsh @@ -13,6 +13,9 @@ function ql() { # Delete .DS_Store and __MACOSX directories. function rm-osx-cruft() { - find "${@:-$PWD}" \( -type f -name '.DS_Store' \) -o \( -type d -name '__MACOSX' \) -print0 | xargs rm -rf + find "${@:-$PWD}" \( \ + -type f -name '.DS_Store' -o \ + -type d -name '__MACOSX' \ + \) -print0 | xargs -0 rm -rf }