projects
/
scripts.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Misc
[scripts.git]
/
bashrc
diff --git
a/bashrc
b/bashrc
index
cbd3ac2
..
5be565d
100644
(file)
--- a/
bashrc
+++ b/
bashrc
@@
-374,7
+374,7
@@
function dvd () {
function ripdvd () {
mkdir -p ${HOME}/dvds
cd ${HOME}/dvds
function ripdvd () {
mkdir -p ${HOME}/dvds
cd ${HOME}/dvds
- dvdbackup -v -M && eject
+
time
dvdbackup -v -M && eject
}
######################################################################
}
######################################################################
@@
-713,7
+713,7
@@
alias gma='gma.sh'
# git clone http://fleuret.org/git/selector/
function selector-history () {
# 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
}
# Find pathes in the history and make a list of the existing ones
@@
-753,6
+753,15
@@
bind '"\C-[c":"\C-a\C-kselector-cd\C-m"'
HISTIGNORE="${HISTIGNORE}:selector-history"
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 () {
######################################################################
function prompt_command () {