From 798b7d4fd5b94b96dc54048cf316e62c835dcccb Mon Sep 17 00:00:00 2001 From: Hendrik Jäger Date: Thu, 31 Dec 2020 09:47:08 +0100 Subject: Add password generating function --- .zsh_functions | 4 ++++ 1 file changed, 4 insertions(+) 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) +} + -- cgit v1.2.3