diff --git a/zsh/.zsh/10-helpers.zsh b/zsh/.zsh/10-helpers.zsh index 06630bb..5e321c5 100644 --- a/zsh/.zsh/10-helpers.zsh +++ b/zsh/.zsh/10-helpers.zsh @@ -2,3 +2,8 @@ mkpasswd() { LEN=${1:-30} tr -cd ' -~' < /dev/urandom | fold -w $LEN | sed 1q } + +mkpasswd2() { + LEN=${1:-30} + base64 < /dev/urandom | fold -w $LEN | sed 1q +}