aboutsummaryrefslogtreecommitdiff
path: root/shell-completions/aur.fish
diff options
context:
space:
mode:
authorpml68 <contact@pml68.dev>2025-09-03 18:42:44 +0200
committerpml68 <contact@pml68.dev>2025-09-03 20:00:18 +0200
commit82e1f3835335d143bbbf8cb0378ff36822ea9483 (patch)
tree8e55cab2cda1cc42df7c0a4c21392b2d6f4394bf /shell-completions/aur.fish
parentfix: only run `git diff` when _update has pulled changes (diff)
downloadaur-82e1f3835335d143bbbf8cb0378ff36822ea9483.tar.gz
feat: add -v/--version option
Diffstat (limited to 'shell-completions/aur.fish')
-rw-r--r--shell-completions/aur.fish12
1 files changed, 12 insertions, 0 deletions
diff --git a/shell-completions/aur.fish b/shell-completions/aur.fish
new file mode 100644
index 0000000..ae54b02
--- /dev/null
+++ b/shell-completions/aur.fish
@@ -0,0 +1,12 @@
+function _aur_no_switches
+ not __fish_contains_opt -s h help -s v version -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 v -l version
+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