commit d635587c4982986318c97cff977bc6104a365c4f
parent 759f29453a707260193b7d650a167d2657d11b74
Author: Ayush Agarwal <ayush@fastmail.in>
Date: Sat, 19 Feb 2022 01:21:26 +0530
feat: update completion for bash and fish
Diffstat:
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/completion/tessen.bash-completion b/completion/tessen.bash-completion
@@ -3,10 +3,10 @@ _tessen() {
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD - 1]}"
- all_long_opts="--backend --action --help --version "
- all_short_opts="-b -a -h -v "
+ all_long_opts="--pass --dmenu --action --help --version "
+ all_short_opts="-p -d -a -h -v "
case "$prev" in
- --backend | -b | --action | -a)
+ --pass | -p | --dmenu | -d | --action | -a)
mapfile -t COMPREPLY < <(compgen -o bashdefault -o default -- "${cur}")
return 0
;;
diff --git a/completion/tessen.fish-completion b/completion/tessen.fish-completion
@@ -1,5 +1,6 @@
complete -f -c tessen
-complete -x -c tessen -s b -l backend -k -a "bemenu rofi wofi" -d "use either bemenu (default), rofi, or wofi as the backend"
+complete -x -c tessen -s p -l pass -k -a "pass gopass" -d "use pass or gopass"
+complete -x -c tessen -s d -l dmenu -k -a "rofi fuzzel bemenu wofi" -d "use either rofi, fuzzel, bemenu, or rofi"
complete -x -c tessen -s a -l action -k -a "autotype copy both" -d "either 'autotype' data, 'copy' it, or do 'both'"
complete -x -c tessen -s h -l help -d "show the help menu"
complete -x -c tessen -s v -l version -d "show the version"