Commit baeba609 by Fred Smith

genpass function, pass alias

parent 18221226
#! /usr/bin/env bash
## Pass
if which gopass &> /dev/null; then
alias pass=gopass
fi
function genpass () {
PASSLEN=${1:-10};
NUMPASS=${2:-1};
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w $PASSLEN | head -n $NUMPASS
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment