From 8100e9bd1db7df8912baef6fadb7f83890c3b899 Mon Sep 17 00:00:00 2001 From: Aaron Toponce Date: Wed, 27 Jul 2016 16:24:47 -0600 Subject: [PATCH] separate gen_xkcd_pass password words with a period. ditch hint --- .zshrc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.zshrc b/.zshrc index 75e4c5b..f2a3c0c 100644 --- a/.zshrc +++ b/.zshrc @@ -124,8 +124,9 @@ gen_xkcd_pass(){ until [ "$I" -eq "$NUM" ]; do I=$((I+1)) WORDS=$(printf "$DICT" | shuff 6 | paste -s -d ' ' /dev/stdin) - XKCD=$(printf "$WORDS" | sed 's/ //g') - printf "$XKCD ($WORDS)" | awk '{x=$1;$1="";printf "%-36s %s\n", x, $0}' + XKCD=$(printf "$WORDS" | sed 's/ /./g') + #printf "$XKCD ($WORDS)" | awk '{x=$1;$1="";printf "%-36s %s\n", x, $0}' + printf "$XKCD" | awk '{x=$1;$1="";printf "%-36s %s\n", x, $0}' done | column } shell-colors() {