From 8c51bdbe765bcd93378b34ea237dcd2e3a9f64a9 Mon Sep 17 00:00:00 2001 From: pml68 Date: Sat, 21 Dec 2024 23:44:44 +0100 Subject: feat: add fish completion script --- aur-completion.fish | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 aur-completion.fish (limited to 'aur-completion.fish') 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 -- cgit v1.2.3