.zshrc: Add genpass() to generate passwords

Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
Alan Orth 2016-03-07 12:39:25 +02:00
parent 222f291e28
commit 3c135c71b7
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

7
.zshrc
View File

@ -124,5 +124,12 @@ smartresize() {
gm mogrify -filter Triangle -define filter:support=2 -thumbnail $2 -unsharp 0.25x0.08+8.3+0.045 -dither -quality 82 -define jpeg:fancy-upsampling=off -define png:compression-filter=5 -define png:compression-level=9 -define png:compression-strategy=1 -define png:exclude-chunk=all -interlace none -strip -output-directory $3 $1
}
# generate random password 25 characters long:
# $ openssl rand -base64 18 | wc -c
# 25
genpass() {
openssl rand -base64 18
}
export PATH
export MANPATH