Skip to content

Commit

Permalink
separate gen_xkcd_pass password words with a period. ditch hint
Browse files Browse the repository at this point in the history
  • Loading branch information
atoponce committed Jul 27, 2016
1 parent f8d7dad commit 8100e9b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .zshrc
Expand Up @@ -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() {
Expand Down

0 comments on commit 8100e9b

Please sign in to comment.