Просмотр исходного кода

Fix bash completion for the colour flag

Tell bash it accepts a value (always, auto, or never)
Mélanie Chauvel 4 лет назад
Родитель
Сommit
0332e0c7f7
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      completions/bash/exa

+ 5 - 0
completions/bash/exa

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