projects
/
scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
39fd98a
)
Update.
author
Francois Fleuret
<francois@fleuret.org>
Tue, 2 Jun 2015 07:35:06 +0000
(09:35 +0200)
committer
Francois Fleuret
<francois@fleuret.org>
Tue, 2 Jun 2015 07:35:06 +0000
(09:35 +0200)
bashrc
patch
|
blob
|
history
diff --git
a/bashrc
b/bashrc
index
4e736e6
..
4ae13cb
100644
(file)
--- a/
bashrc
+++ b/
bashrc
@@
-543,12
+543,12
@@
function keep () {
# I sometime burn CDs and DVDs
function burn () {
# I sometime burn CDs and DVDs
function burn () {
-
DEVICE="/dev/cdrw1
"
+
[[ "${DEV_BURNER}" ]] || DEV_BURNER="/dev/sr0
"
if [[ ! "$1" ]]; then
echo "burn <iso name | dirname>" >&2
elif [[ -f "$1" ]]; then
if [[ $(file "$1" | \grep -E 'ISO 9660|UDF filesystem data') ]]; then
if [[ ! "$1" ]]; then
echo "burn <iso name | dirname>" >&2
elif [[ -f "$1" ]]; then
if [[ $(file "$1" | \grep -E 'ISO 9660|UDF filesystem data') ]]; then
- wodim -eject -v dev=${DEV
ICE
} "$1"
+ wodim -eject -v dev=${DEV
_BURNER
} "$1"
else
echo "Do not know what to do with $1" >&2
fi
else
echo "Do not know what to do with $1" >&2
fi
@@
-557,7
+557,7
@@
function burn () {
echo "Using ${TMP_ROOT} as temporary directory."
TMP=$(mktemp ${TMP_ROOT}/cdimage.XXXXXX) && \
genisoimage -input-charset iso8859-1 -r -o ${TMP} "$1" && \
echo "Using ${TMP_ROOT} as temporary directory."
TMP=$(mktemp ${TMP_ROOT}/cdimage.XXXXXX) && \
genisoimage -input-charset iso8859-1 -r -o ${TMP} "$1" && \
- wodim -eject -v dev=${DEV
ICE
} ${TMP}
+ wodim -eject -v dev=${DEV
_BURNER
} ${TMP}
rm -f ${TMP}
else
echo "Can not find $1" >&2
rm -f ${TMP}
else
echo "Can not find $1" >&2
@@
-790,6
+790,8
@@
alias finddup='finddup -p'
#
# git clone http://fleuret.org/git/selector/
#
# git clone http://fleuret.org/git/selector/
+export SELECTOR_CD_HISTORY_SIZE=10000
+
source bash-selector.sh --hist --cd
######################################################################
source bash-selector.sh --hist --cd
######################################################################