From 9b4b2e7c5216b4c8260c32fbfa6048a9e71d0442 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Tue, 10 Jul 2012 12:03:30 -0400 Subject: [PATCH] Adjust scanletter alias to use SANE_DEFAULT_DEVICE. This allows me to easily override the SANE device. This is useful because subsequent scanner plugins can generate increasing USB device numbers: epkowa:interpreter:001:003 epkowa:interpreter:001:004 ... --- src/.bashrc.d/00environment | 2 ++ src/.bashrc.d/10aliases | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/.bashrc.d/00environment b/src/.bashrc.d/00environment index 20a71d8..62ee06a 100644 --- a/src/.bashrc.d/00environment +++ b/src/.bashrc.d/00environment @@ -8,3 +8,5 @@ if [ -f ~/.hosts ]; then fi export MONKEYSPHERE_CHECK_KEYSERVER=false + +export SANE_DEFAULT_DEVICE='epkowa:interpreter:001:003' diff --git a/src/.bashrc.d/10aliases b/src/.bashrc.d/10aliases index 413e1b7..94a05fa 100644 --- a/src/.bashrc.d/10aliases +++ b/src/.bashrc.d/10aliases @@ -28,7 +28,7 @@ alias findex='find . -perm -u+x ! -type d' alias sortdat='find . -printf "%TY-%Tm-%Td+%TH:%TM:%TS %h/%f\n" | sort -n' alias sortdirdat='find . -type d -printf "%TY-%Tm-%Td+%TH:%TM:%TS %h/%f\n" | sort -n' alias pythonhttp='python -m SimpleHTTPServer 8000' -alias scanletter='scanimage -d 'epkowa:interpreter:001:003' --quick-format Letter --format=tiff' +alias scanletter='scanimage --quick-format Letter --format=tiff' # enable color support of ls and also add handy aliases if [ "$TERM" != "dumb" ] && [ -x /usr/bin/dircolors ]; then -- 2.26.2