From f1f250f7b8e02f00db9543eee0b6fe4cc1617f67 Mon Sep 17 00:00:00 2001 From: Sam Morrison Date: Mon, 19 Jan 2015 12:28:35 +0900 Subject: [PATCH] corrected passgen example text and default --- plugins/available/base.plugin.bash | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/available/base.plugin.bash b/plugins/available/base.plugin.bash index c54fdd4b..f0aa155d 100644 --- a/plugins/available/base.plugin.bash +++ b/plugins/available/base.plugin.bash @@ -44,13 +44,13 @@ function passgen () about 'generates random password from dictionary words' param 'optional integer length' param 'if unset, defaults to 4' - example '$ pass' - example '$ pass 6' + example '$ passgen' + example '$ passgen 6' group 'base' - local i pass length=${1:-4} + local i passgen length=${1:-4} pass=$(echo $(for i in $(eval echo "{1..$length}"); do pickfrom /usr/share/dict/words; done)) echo "With spaces (easier to memorize): $pass" - echo "Without (use this as the pass): $(echo $pass | tr -d ' ')" + echo "Without (use this as the password): $(echo $pass | tr -d ' ')" } # Create alias pass to passgen when pass isn't installed or