Skip to content

Instantly share code, notes, and snippets.

@Jessidhia
Created November 7, 2011 23:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jessidhia/1346563 to your computer and use it in GitHub Desktop.
Save Jessidhia/1346563 to your computer and use it in GitHub Desktop.
'eject'-like syntax wrapper for CDR as a profile snippet
#! /usr/bin/env bash
# Uses the CDR program from http://www.codeguru.com/cpp/w-p/system/cd-rom/article.php/c5775
# Just remove the "eject () {" and the "}" lines to turn this into a standalone script
eject () {
if [ "$1" = "-t" ]; then
shift;
CDR close "$@"
else
CDR open "$@"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment