projects
/
scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c6edcdf
)
Update.
author
Francois Fleuret
<francois@fleuret.org>
Fri, 8 Jun 2018 18:40:26 +0000
(20:40 +0200)
committer
Francois Fleuret
<francois@fleuret.org>
Fri, 8 Jun 2018 18:40:26 +0000
(20:40 +0200)
bashrc
patch
|
blob
|
history
diff --git
a/bashrc
b/bashrc
index
9ee087b
..
6d1de66
100644
(file)
--- a/
bashrc
+++ b/
bashrc
@@
-122,6
+122,7
@@
alias val='valgrind --leak-check=full --show-reachable=yes --db-attach=yes '
alias s='screen -d -R -U && clear'
alias p='feh --force-aliasing -d --full-screen --auto-zoom'
alias s='screen -d -R -U && clear'
alias p='feh --force-aliasing -d --full-screen --auto-zoom'
+alias gp=gnuplot
function nh () {
export HISTFILE=/dev/null
function nh () {
export HISTFILE=/dev/null
@@
-314,7
+315,12
@@
function scan () {
# A password generator
function genpw () {
# A password generator
function genpw () {
- tr -dc A-Za-z0-9 < /dev/urandom | head -c16
+ PW=$(tr -dc A-Za-z0-9 < /dev/urandom | head -c16)
+ if [[ ! "$1" == "-s" ]]
+ then
+ echo "$(date) ${PW}" >> ${HOME}/private/genpw.log
+ fi
+ echo ${PW}
# tr -dc [:graph:] < /dev/urandom | head -c16
echo
}
# tr -dc [:graph:] < /dev/urandom | head -c16
echo
}