parch-zsh-config/rootfs/usr/share/parchlinux/zsh/functions/genpass.zsh
2024-11-17 01:18:06 +03:30

4 lines
No EOL
124 B
Bash

function genpass() {
local length="${1:-16}"
tr -dc 'A-Za-z0-9!@#$%^&*()_+-=' </dev/urandom | head -c "$length" ; echo
}