diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-06-21 22:35:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-21 22:35:49 +0200 |
commit | 6d9ff7bb5845b5d54604f6a226ab2178ddc2e680 (patch) | |
tree | 561ce15bd4080903ff75a2f576438972e96c0281 | |
parent | 3a43d7bf8fa9e4a6c3581f2066f893c3c88e58ab (diff) | |
parent | 0aed5208a06bcbfba1c3373dd8f395f1fef926a8 (diff) | |
download | vyatta-cfg-6d9ff7bb5845b5d54604f6a226ab2178ddc2e680.tar.gz vyatta-cfg-6d9ff7bb5845b5d54604f6a226ab2178ddc2e680.zip |
Merge pull request #48 from c-po/current
T1748: vbash: beautify tab completion output/line breaks
-rw-r--r-- | etc/bash_completion.d/vyatta-cfg | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/etc/bash_completion.d/vyatta-cfg b/etc/bash_completion.d/vyatta-cfg index da75aa4..eb07616 100644 --- a/etc/bash_completion.d/vyatta-cfg +++ b/etc/bash_completion.d/vyatta-cfg @@ -463,11 +463,13 @@ get_help_text () fi fi if [ ${#_get_help_text_items[idx]} -lt $((6 - $node)) ]; then + vyatta_help_text+="${_get_help_text_items[idx]}\\t\\t\\t" + elif [ ${#_get_help_text_items[idx]} -lt $((14 - $node)) ]; then vyatta_help_text+="${_get_help_text_items[idx]}\\t\\t" - elif [ ${#_get_help_text_items[idx]} -lt 13 ]; then + elif [ ${#_get_help_text_items[idx]} -lt 21 ]; then vyatta_help_text+="${_get_help_text_items[idx]}\\t" else - vyatta_help_text+="${_get_help_text_items[idx]}\\n\\x20\\x20\\x20\\t\\t" + vyatta_help_text+="${_get_help_text_items[idx]}\\n\\x20\\x20\\x20\\t\\t\\t" fi vyatta_help_text+="${_get_help_text_helps[idx]}" done |