configfiles/zsh/.zsh/10-helpers.zsh
2015-10-08 14:31:40 +02:00

4 lines
88 B
Bash

mkpasswd() {
LEN=${1:-30}
tr -cd ' -~' < /dev/urandom | fold -w $LEN | sed 1q
}