From 259dbd11d1a02420a24f3cdbbc05d1cfb429a2ea Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 16 Nov 2024 15:26:30 +0100 Subject: [PATCH] pwg,pwgs --- shell/alias/pwgen.sh | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/shell/alias/pwgen.sh b/shell/alias/pwgen.sh index c462028..4052d61 100644 --- a/shell/alias/pwgen.sh +++ b/shell/alias/pwgen.sh @@ -1,16 +1,15 @@ # generate passwords -alias pwg="\ -pwgen \ --1 \ ---num-passwords 1048576 \ ---secure \ -" +pwg() { + pwgen \ + -1 \ + --num-passwords 1048576 \ + --secure \ + "${@}" +} # generate passwords with symbols -alias pwgs="\ -pwgen \ --1 \ ---num-passwords 1048576 \ ---secure \ ---symbols \ -" +pwgs() { + pwg \ + --symbols \ + "${@}" +}