configfiles/zsh/.zsh/10-helpers.zsh

5 lines
88 B
Bash
Raw Normal View History

2015-10-08 14:31:40 +02:00
mkpasswd() {
LEN=${1:-30}
tr -cd ' -~' < /dev/urandom | fold -w $LEN | sed 1q
}