Fixed rm-osx-cruft and updated the plugin README.

main
Sorin Ionescu 13 years ago
parent 902edfdd61
commit 60f7ab8f80

@ -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.

@ -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
}

Loading…
Cancel
Save