summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Jäger <gitcommit@henk.geekmail.org>2023-01-25 16:36:41 +0100
committerHendrik Jäger <gitcommit@henk.geekmail.org>2023-01-25 16:36:41 +0100
commit237de54de0a1deb1520bc706a3ea37e211b74601 (patch)
tree4cb449608140d5ee676d35bce1108802a2193ffc
parent89676cc37123982ac4e8b4de22308dcef54f7ac7 (diff)
fix: simplify by removing command substitution and echo; unset PROMPT_EOL_MARK to prevent % at the EOL
-rw-r--r--.zsh_functions/henkspwgen3
1 files changed, 2 insertions, 1 deletions
diff --git a/.zsh_functions/henkspwgen b/.zsh_functions/henkspwgen
index 584a706..0f6d80c 100644
--- a/.zsh_functions/henkspwgen
+++ b/.zsh_functions/henkspwgen
@@ -1 +1,2 @@
- echo $( (tr -cd '[:alnum:]' | head -c $1) < /dev/urandom)
+PROMPT_EOL_MARK=
+(tr -cd '[:alnum:]' | head -c $1) < /dev/urandom