Browse Source

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

master
Sorin Ionescu 13 years ago
parent
commit
60f7ab8f80
  1. 8
      plugins/osx/README.md
  2. 5
      plugins/osx/init.zsh

8
plugins/osx/README.md

@ -1,4 +1,4 @@ @@ -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. @@ -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.

5
plugins/osx/init.zsh

@ -13,6 +13,9 @@ function ql() { @@ -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