diff options
| author | pml68 <contact@pml68.dev> | 2024-12-21 23:44:44 +0100 |
|---|---|---|
| committer | pml68 <contact@pml68.dev> | 2024-12-21 23:44:44 +0100 |
| commit | 8c51bdbe765bcd93378b34ea237dcd2e3a9f64a9 (patch) | |
| tree | 73fcf2ee846a635f4e481e1caeca7a431ad6d59a | |
| parent | feat: exit with code 16 when unknown switch is used (diff) | |
| download | aur-8c51bdbe765bcd93378b34ea237dcd2e3a9f64a9.tar.gz | |
feat: add fish completion script
| -rw-r--r-- | aur-completion.fish | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/aur-completion.fish b/aur-completion.fish new file mode 100644 index 0000000..fea8e37 --- /dev/null +++ b/aur-completion.fish @@ -0,0 +1,11 @@ +function _aur_no_switches + not __fish_contains_opt -s h help -s l list -s f force -s g git -s c config +end + +complete -c aur -f +complete -c aur -n "_aur_no_switches" -a "(basename -a ~/.aur/*/)" +complete -c aur -s h -l help +complete -c aur -s l -l list +complete -c aur -s f -l force +complete -c aur -s g -l git +complete -c aur -s c -l config -F -r |
