From cabd80dd1cc5eb1263e18a395b05cc6d8279c073 Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Fri, 8 Jun 2018 20:40:26 +0200 Subject: [PATCH] Update. --- bashrc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 } -- 2.20.1