diff --git a/share/completions/synclient.fish b/share/completions/synclient.fish new file mode 100644 index 000000000..e5a230498 --- /dev/null +++ b/share/completions/synclient.fish @@ -0,0 +1,6 @@ +set __fish_synclient_keys (synclient | string replace -r '\s*(\w+).*' '$1') + +complete -c synclient -s l -d "List current user settings" +complete -c synclient -s '?' -d "Show help" +complete -c synclient -s V -d "Show version" +complete -c synclient -xa "$__fish_synclient_keys"