From 9974f0a99d9ed69acee1c42e1d922079d6a1f599 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 18 Nov 2024 16:30:11 +0100 Subject: [PATCH] pwgen --- sh/alias/pwgen.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sh/alias/pwgen.sh b/sh/alias/pwgen.sh index 4052d61..4c0b1f2 100644 --- a/sh/alias/pwgen.sh +++ b/sh/alias/pwgen.sh @@ -1,5 +1,6 @@ # generate passwords -pwg() { +pwg() { sh_a__pass_word_gen "${@}"; } +sh_a__pass_word_gen() { pwgen \ -1 \ --num-passwords 1048576 \ @@ -8,8 +9,9 @@ pwg() { } # generate passwords with symbols -pwgs() { - pwg \ +pwgs() { sh_a__pass_word_gen_symbols "${@}"; } +sh_a__pass_word_gen_symbols() { + sh_a__pass_word_gen \ --symbols \ "${@}" }