by Morgan Aldridge email@example.com
A small collection of command line tools that I've developed for Mac OS X over the years, à la NextStep/Mac OS X's
pbpaste, etc. These are mostly
bash scripts as an exercise in honing my bash-fu.
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.
trash allows trashing of files instead of tempting fate with
rm. Correctly handles trashing files on other volumes.
I'd suggest installing these tools in
/usr/local/bin/ as follows:
cdinto the directory containing the aforementioned tools.
sudo mkdir -p /usr/local/bin/to make the
/usr/local/bin/directory, if it doesn't already exist.
sudo install -b clipcat eject trash /usr/local/bin/to install the
/usr/local/bin/(Note: if you do not want to install all of the tools, only list the ones you want to install).
- Make sure to add
/usr/local/bin/to your path. If you're using the default
bashshell, create and/or edit
~/.bash_profileand add the following line: