diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-06-20 21:05:14 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-06-20 21:05:39 +0200 |
commit | 0aed5208a06bcbfba1c3373dd8f395f1fef926a8 (patch) | |
tree | 561ce15bd4080903ff75a2f576438972e96c0281 /etc | |
parent | 3a43d7bf8fa9e4a6c3581f2066f893c3c88e58ab (diff) | |
download | vyatta-cfg-0aed5208a06bcbfba1c3373dd8f395f1fef926a8.tar.gz vyatta-cfg-0aed5208a06bcbfba1c3373dd8f395f1fef926a8.zip |
T1748: vbash: beautify tab completion output/line breaks
Diffstat (limited to 'etc')
-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 |