summaryrefslogtreecommitdiff
path: root/completions/chronyc
diff options
context:
space:
mode:
Diffstat (limited to 'completions/chronyc')
-rw-r--r--completions/chronyc2
1 files changed, 1 insertions, 1 deletions
diff --git a/completions/chronyc b/completions/chronyc
index b95308f5..7a5f5f64 100644
--- a/completions/chronyc
+++ b/completions/chronyc
@@ -28,7 +28,7 @@ _chronyc()
case $args in
0)
COMPREPLY=( $( compgen -W "$( $1 help 2>/dev/null | \
- awk 'NR > 1 { sub("\\|", " ", $1); print $1 }' )" -- "$cur" ) )
+ awk '!/(^ |: *$)/ { sub("\\|", " ", $1); print $1 }' )" -- "$cur" ) )
;;
1)
case $prev in