summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMélanie Chauvel <perso@hack-libre.org>2021-10-11 02:25:28 +0200
committerMélanie Chauvel <perso@hack-libre.org>2021-10-11 02:26:12 +0200
commit0332e0c7f72334c8692d40663b76a8bd5e73cb87 (patch)
treedb8cc666fa6a6a9276bfa4a54873e5a53d403dee
parent0d645735d7c03c7652e31a1daceb0c59f0c5adc1 (diff)
Fix bash completion for the colour flag
Tell bash it accepts a value (always, auto, or never)
-rw-r--r--completions/bash/exa5
1 files changed, 5 insertions, 0 deletions
diff --git a/completions/bash/exa b/completions/bash/exa
index 187efe0..d044727 100644
--- a/completions/bash/exa
+++ b/completions/bash/exa
@@ -8,6 +8,11 @@ _exa()
return
;;
+ --colour)
+ COMPREPLY=( $( compgen -W 'always auto never' -- "$cur" ) )
+ return
+ ;;
+
-L|--level)
COMPREPLY=( $( compgen -W '{0..9}' -- "$cur" ) )
return