projects
/
scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c4d6a63
)
Update.
author
Francois Fleuret
<francois@fleuret.org>
Mon, 12 Jun 2017 07:55:28 +0000
(09:55 +0200)
committer
Francois Fleuret
<francois@fleuret.org>
Mon, 12 Jun 2017 07:55:28 +0000
(09:55 +0200)
bashrc
patch
|
blob
|
history
diff --git
a/bashrc
b/bashrc
index
5066b31
..
b9cefb4
100644
(file)
--- a/
bashrc
+++ b/
bashrc
@@
-192,10
+192,10
@@
function rl () {
if [[ -f "${FILEBASE}.tex" ]]; then
if [[ -f "${FILEBASE}.tex" ]]; then
- pdflatex "${FILEBASE}"
+ pdflatex
--shell-escape
"${FILEBASE}"
bibtex "${FILEBASE}"
bibtex "${FILEBASE}"
- pdflatex "${FILEBASE}"
- pdflatex "${FILEBASE}"
+ pdflatex
--shell-escape
"${FILEBASE}"
+ pdflatex
--shell-escape
"${FILEBASE}"
if [[ "$1" ]]; then
if [[ "$1" == "-v" ]] || [[ "$1" == "--view" ]]; then
if [[ "$1" ]]; then
if [[ "$1" == "-v" ]] || [[ "$1" == "--view" ]]; then
@@
-268,7
+268,9
@@
function scan () {
elif [[ "$1" == "gray" ]]; then
OPTS+=" --mode Gray"
elif [[ "$1" == "a4crop" ]]; then
elif [[ "$1" == "gray" ]]; then
OPTS+=" --mode Gray"
elif [[ "$1" == "a4crop" ]]; then
- OPTS+=" -l 5 -t 0 -x 200 -y 290"
+ OPTS+=" -l 5 -t 0 -x 200 -y 300"
+ elif [[ "$1" == "help" ]] || [[ "$1" == "-h" ]] || [[ "$1" == "--help" ]]; then
+ echo "$0 [color|gray] [a4crop]" && return 0
else
echo "Unknown argument \`$1'"
fi
else
echo "Unknown argument \`$1'"
fi
@@
-936,9
+938,7
@@
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} ]] || find . -maxdepth 1 -name "core__*" | awk '{print "'${VT_RED_FG}'"$0"'${VT_RESET}'"}'
CORE_CHECK_PWD=${PWD}
# if [[ $(umask) != 0022 ]]; then
CORE_CHECK_PWD=${PWD}
# if [[ $(umask) != 0022 ]]; then