Fix bash completion for the colour flag

Tell bash it accepts a value (always, auto, or never)
This commit is contained in:
Mélanie Chauvel 2021-10-11 02:25:28 +02:00
parent 0d645735d7
commit 0332e0c7f7
1 changed files with 5 additions and 0 deletions

View File

@ -8,6 +8,11 @@ _exa()
return
;;
--colour)
COMPREPLY=( $( compgen -W 'always auto never' -- "$cur" ) )
return
;;
-L|--level)
COMPREPLY=( $( compgen -W '{0..9}' -- "$cur" ) )
return