function ripdvd () {
mkdir -p ${HOME}/dvds
cd ${HOME}/dvds
- dvdbackup -v -M && eject
+ time dvdbackup -v -M && eject
}
######################################################################
# git clone http://fleuret.org/git/selector/
function selector-history () {
- selector --bash -c 7,4,0,3 -q -l 15000 <(history)
+ selector --bash -c 7,4,0,3 -q <(history)
}
# Find pathes in the history and make a list of the existing ones
HISTIGNORE="${HISTIGNORE}:selector-history"
+function selector-printer () {
+ TMP=$(mktemp /tmp/selector-printer.XXXXXX)
+ selector -o ${TMP} <(lpstat -a | awk '{print $1}')
+ export PRINTER=$(cat ${TMP})
+ echo "PRINTER=${PRINTER}"
+ rm -f ${TMP}
+ lpq
+}
+
######################################################################
function prompt_command () {