diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-07-30 15:04:12 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-07-30 15:04:12 +0200 |
commit | e3683ef9025df5e336cf7798eda2d1be2178734a (patch) | |
tree | 8ab52b6c1832418c0abb304a7e5ceaac0506d559 /etc | |
parent | 7a61ac28bfac8be745239502c5c24fba4dca97bf (diff) | |
download | vyatta-op-e3683ef9025df5e336cf7798eda2d1be2178734a.tar.gz vyatta-op-e3683ef9025df5e336cf7798eda2d1be2178734a.zip |
T1748: vbash: beautify tab completion output/line breaks
Diffstat (limited to 'etc')
-rw-r--r-- | etc/bash_completion.d/vyatta-op | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/etc/bash_completion.d/vyatta-op b/etc/bash_completion.d/vyatta-op index ba54032..8ac2d9b 100644 --- a/etc/bash_completion.d/vyatta-op +++ b/etc/bash_completion.d/vyatta-op @@ -125,11 +125,13 @@ _vyatta_op_print_help () elif [ ${#help} -eq 0 ] ; then echo -ne "\n $label" elif [ ${#label} -lt 6 ] ; then - echo -ne "\n $label\t\t$help" + echo -ne "\n $label\t\t\t$help" elif [ ${#label} -lt 14 ] ; then + echo -ne "\n $label\t\t$help" + elif [ ${#label} -lt 21 ] ; then echo -ne "\n $label\t$help" else - echo -ne "\n $label\n\t\t$help" + echo -ne "\n $label\n\t\t\t$help" fi } |