aboutsummaryrefslogtreecommitdiff
path: root/shell-completions/aur.fish
diff options
context:
space:
mode:
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