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
# 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
}