From: Francois Fleuret Date: Fri, 8 Jun 2018 18:40:26 +0000 (+0200) Subject: Update. X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=scripts.git;a=commitdiff_plain;h=cabd80dd1cc5eb1263e18a395b05cc6d8279c073 Update. --- diff --git a/bashrc b/bashrc index 9ee087b..6d1de66 100644 --- 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 gp=gnuplot function nh () { export HISTFILE=/dev/null @@ -314,7 +315,12 @@ function scan () { # 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 }