summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Jäger <hendrik.jaeger@dswiss.com>2020-12-31 09:47:08 +0100
committerHendrik Jäger <hendrik.jaeger@dswiss.com>2020-12-31 09:47:08 +0100
commit798b7d4fd5b94b96dc54048cf316e62c835dcccb (patch)
treea5d31b83ae9ef499a115a7c66f20d816334dbba4
parent1f3fa29bdde94706d98fdf48fe12d1431d43dc80 (diff)
Add password generating function
-rw-r--r--.zsh_functions4
1 files changed, 4 insertions, 0 deletions
diff --git a/.zsh_functions b/.zsh_functions
index ed0cddc..5e44334 100644
--- a/.zsh_functions
+++ b/.zsh_functions
@@ -101,3 +101,7 @@ function stardewpause () {
done
}
+function henkpwgen () {
+ echo $( (tr -cd '[:alnum:]' | head -c $1) < /dev/urandom)
+}
+