diff options
-rw-r--r-- | etc/bash_completion.d/10vyatta-op | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/etc/bash_completion.d/10vyatta-op b/etc/bash_completion.d/10vyatta-op index 5b74d93..4d47a8c 100644 --- a/etc/bash_completion.d/10vyatta-op +++ b/etc/bash_completion.d/10vyatta-op @@ -83,12 +83,13 @@ _vyatta_op_get_node_def_field () _vyatta_op_print_help () { local label=$1 ; shift - local -i len=12 - if [ ${#label} -lt $len ] ; then - printf "\n %-${len}s\t%b" "$label" "$*" + if [ ${#label} -lt 6 ] ; then + echo -ne "\n $label\t\t" $* + elif [ ${#label} -lt 14 ] ; then + echo -ne "\n $label\t" $* else - printf "\n %s\n\t\t%b" "$label" "$*" + echo -ne "\n $label\n\t\t" $* fi } |