projects
/
scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2ef9154
)
Update.
author
Francois Fleuret
<francois@fleuret.org>
Fri, 20 Mar 2015 15:06:53 +0000
(16:06 +0100)
committer
Francois Fleuret
<francois@fleuret.org>
Fri, 20 Mar 2015 15:06:53 +0000
(16:06 +0100)
bashrc
patch
|
blob
|
history
diff --git
a/bashrc
b/bashrc
index
cb98ffa
..
4e736e6
100644
(file)
--- a/
bashrc
+++ b/
bashrc
@@
-23,11
+23,11
@@
PRIVATE_BASHRC="${HOME}/private/bashrc.perso"
# If the MANPATH is not set, set it
# If the MANPATH is not set, set it
-[
"${MANPATH}"
] || MANPATH=$(manpath)
+[
[ "${MANPATH}" ]
] || MANPATH=$(manpath)
# If the private bashrc exists, execute it
# If the private bashrc exists, execute it
-[
-f "${PRIVATE_BASHRC}"
] && source "${PRIVATE_BASHRC}"
+[
[ -f "${PRIVATE_BASHRC}" ]
] && source "${PRIVATE_BASHRC}"
# !!! THIS HAS TO BE HERE EVEN IN THE NON-INTERACTIVE PART OR YOU WILL
# LOSE YOU PREVIOUS HISTORY !!!
# !!! THIS HAS TO BE HERE EVEN IN THE NON-INTERACTIVE PART OR YOU WILL
# LOSE YOU PREVIOUS HISTORY !!!
@@
-168,7
+168,9
@@
function latexdiff () {
# corresponding tex file
function rl () {
# corresponding tex file
function rl () {
- RECENT_LOG=$(ls -t $(find -maxdepth 1 -name "*.log" -type f) | head -1)
+ # RECENT_LOG=$(ls -t $(find -maxdepth 1 -name "*.log" -type f) | head -1)
+
+ RECENT_LOG=$(ls -t *.log | head -1)
if [[ ${RECENT_LOG} ]]; then
FILEBASE="${RECENT_LOG/.log/}"
if [[ ${RECENT_LOG} ]]; then
FILEBASE="${RECENT_LOG/.log/}"
@@
-238,10
+240,11
@@
function bak () {
done
}
done
}
-#
P
assword generator
+#
A p
assword generator
-function
pwgen
() {
+function
genpw
() {
tr -dc A-Za-z0-9 < /dev/urandom | head -c16
tr -dc A-Za-z0-9 < /dev/urandom | head -c16
+ # tr -dc [:graph:] < /dev/urandom | head -c16
echo
}
echo
}
@@
-623,6
+626,12
@@
alias ripcd=abcde
function mksmall () {
function mksmall () {
+ if [[ "$1" == "--params" ]]; then
+ shift
+ PARAMS="$1"
+ shift
+ fi
+
[[ "${PARAMS}" ]] || PARAMS="-geometry 800x600"
# Auto-orient does not seem to work at all, hence the ugly hack
[[ "${PARAMS}" ]] || PARAMS="-geometry 800x600"
# Auto-orient does not seem to work at all, hence the ugly hack
@@
-852,6
+861,9
@@
function lsn () {
######################################################################
function prompt_command () {
######################################################################
function prompt_command () {
+ # if [[ $(umask) != 0022 ]]; then
+ # echo "Umask changed to $(umask)"
+ # fi
# save the history after every command to avoid loosing some when
# multiple shells are open
history -a
# save the history after every command to avoid loosing some when
# multiple shells are open
history -a