diff options
author | Patrick Harrison <mestizo@gmail.com> | 2020-12-14 10:11:12 +0700 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2020-12-14 15:52:32 +0100 |
commit | 2db42c6ce745ed37262bed6c97683a00a430f076 (patch) | |
tree | 6630dc75945d3db64d1101283a7e392c45f3941f /plugins/genpass | |
parent | 076f7f1eb19914877e49eb186eb076fc3e493b36 (diff) | |
download | zsh-2db42c6ce745ed37262bed6c97683a00a430f076.tar.gz zsh-2db42c6ce745ed37262bed6c97683a00a430f076.tar.bz2 zsh-2db42c6ce745ed37262bed6c97683a00a430f076.zip |
fix(genpass): add compatibility for macOS paste command
"paste" on macOS requires a '-' to signify that the standard input is used.
Without the '-' character, the command errors out.
Diffstat (limited to 'plugins/genpass')
-rw-r--r-- | plugins/genpass/genpass.plugin.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/genpass/genpass.plugin.zsh b/plugins/genpass/genpass.plugin.zsh index 1353ef456..e6a1cef34 100644 --- a/plugins/genpass/genpass.plugin.zsh +++ b/plugins/genpass/genpass.plugin.zsh @@ -101,6 +101,6 @@ genpass-xkcd() { for i in {1..$num}; do printf "$n-" - printf "$dict" | shuf -n "$n" | paste -sd '-' + printf "$dict" | shuf -n "$n" | paste -sd '-' - done } |