Tools OS X
is a small collection of command line tools developed for Mac OS X over the years, à la NextStep/Mac OS X's open, pbcopy, pbpaste, etc. These are mostly bash scripts.
- `clipcat` prints and concatenates Mac OS Text Clippings. Submitted by David Kendal (https://gist.github.com/705623).
- `eject` ejects a volume and all other volumes on the same disk. A simpler, shorter wrapper of `diskutil`'s various eject/unmount options and allows specifying either a full path in /Volumes or just the volume name.
- `swuser` switches users using Mac OS X's Fast User Switching feature. You can either switch out to the login window or to another user. Note: unfortunately, this is not currently compatible with `screen`.
- `trash` allows trashing of files instead of tempting fate with rm. Correctly handles trashing files on other volumes, can list trash contents w/disk usage summary, and empty trash w/confirmation.
Released under the MIT license. Source code available at http://github.com/morgant/tools-osx