aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/pwgen.bash
blob: 2d68e05c3758208bcbf4bac704aab686a3e23c87 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
# Set some defaults for pwgen(1), because its defaults are to give me a long
# list of relatively short passwords, when I generally want only one good one
pwgen() {
    if (($#)) ; then
        command pwgen "$@"
    else
        command pwgen --secure -- "${PWGEN_LENGTH:-15}" "${PWGEN_COUNT:-1}"
    fi
}