projects
/
scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ffbc2bb
)
Update.
author
Francois Fleuret
<francois@fleuret.org>
Tue, 25 Oct 2016 08:49:29 +0000
(10:49 +0200)
committer
Francois Fleuret
<francois@fleuret.org>
Tue, 25 Oct 2016 08:49:29 +0000
(10:49 +0200)
bashrc
patch
|
blob
|
history
diff --git
a/bashrc
b/bashrc
index
5e8a846
..
b9a22d7
100644
(file)
--- a/
bashrc
+++ b/
bashrc
@@
-92,6
+92,10
@@
export LESS_TERMCAP_ue=${VT_RESET}
export LESS_TERMCAP_md=${VT_BLUE_FG}${VT_BOLD}
export LESS_TERMCAP_me=${VT_RESET}
export LESS_TERMCAP_md=${VT_BLUE_FG}${VT_BOLD}
export LESS_TERMCAP_me=${VT_RESET}
+# I do not like to clutter my home with history files
+
+export LESSHISTFILE=/dev/null
+
# export LESS_TERMCAP_md=$'\e[1;34;40m'
# This prevents ^S from freezing the shell
# export LESS_TERMCAP_md=$'\e[1;34;40m'
# This prevents ^S from freezing the shell
@@
-260,7
+264,9
@@
function scan () {
while [[ "$1" ]]; do
if [[ "$1" == "color" ]]; then
while [[ "$1" ]]; do
if [[ "$1" == "color" ]]; then
- OPTS+=" --mode=color"
+ OPTS+=" --mode Color"
+ elif [[ "$1" == "gray" ]]; then
+ OPTS+=" --mode Gray"
elif [[ "$1" == "a4crop" ]]; then
OPTS+=" -l 5 -t 0 -x 200 -y 290"
else
elif [[ "$1" == "a4crop" ]]; then
OPTS+=" -l 5 -t 0 -x 200 -y 290"
else
@@
-273,7
+279,9
@@
function scan () {
echo "** Scanning to ${HOME}/scan-${n}.jpg"
echo "**"
echo "** Scanning to ${HOME}/scan-${n}.jpg"
echo "**"
- scanimage -d genesys:libusb:001:056 \
+ SCANNER=$(scanimage -L | grep "Canon LiDE 60" | sed -e "s/^.*\`\(.*\)'.*$/\1/")
+
+ scanimage -d ${SCANNER} \
--format=pnm \
--mode=color \
--depth=8 \
--format=pnm \
--mode=color \
--depth=8 \
@@
-924,6
+932,11
@@
EOF
######################################################################
function prompt_command () {
######################################################################
function prompt_command () {
+ # if [[ ! "${CORE_CHECK_PWD}" == ${PWD} ]] && [[ $(find . -maxdepth 1 -name "core__*" -print -quit) ]]; then
+
+ [[ "${CORE_CHECK_PWD}" == ${PWD} ]] || find . -maxdepth 1 -name "core__*"
+ CORE_CHECK_PWD=${PWD}
+
# if [[ $(umask) != 0022 ]]; then
# echo "Umask changed to $(umask)"
# fi
# if [[ $(umask) != 0022 ]]; then
# echo "Umask changed to $(umask)"
# fi