diff options
author | Ayush Agarwal <ayush@fastmail.in> | 2022-02-19 01:21:26 +0530 |
---|---|---|
committer | Ayush Agarwal <ayushnix@fastmail.com> | 2022-02-19 22:48:32 +0530 |
commit | d635587c4982986318c97cff977bc6104a365c4f (patch) | |
tree | dbe51d5b2b3d156d407e94221574924b62b6be78 /completion | |
parent | 759f29453a707260193b7d650a167d2657d11b74 (diff) |
feat: update completion for bash and fish
Diffstat (limited to 'completion')
-rw-r--r-- | completion/tessen.bash-completion | 6 | ||||
-rw-r--r-- | completion/tessen.fish-completion | 3 |
2 files changed, 5 insertions, 4 deletions
diff --git a/completion/tessen.bash-completion b/completion/tessen.bash-completion index 8134417..5d61749 100644 --- 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 index 0811867..3f88a78 100644 --- 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" |