diff --git a/zshrc b/zshrc index a31e44a..e096dfc 100644 --- a/zshrc +++ b/zshrc @@ -34,9 +34,13 @@ runfor() { mkpasswd() { LEN=${1:-30} - cat /dev/urandom | base64 | head -n 1 | cut -c -$LEN + base64 < /dev/urandom | fold -w $LEN | sed 1q } +mkpasswd2() { + LEN=${1:-30} + tr -cd ' -~' < /dev/urandom | fold -w $LEN | sed 1q +} export EDITOR="vim"