aboutsummaryrefslogtreecommitdiff
path: root/completion/fish-completion.fish
blob: 1c6c57a1d3517f68c6aa273fbd06013266924b89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# FISH completions for ponysay
# https://github.com/erkin/ponysay/
#
# Author: Elis Axelsson <etu AT elis DOT nu>

set -g ponies  ('/usr/bin/ponysay.py' --onelist)
set -g quoters ('/usr/bin/ponysay.py' --quoters)


complete --command ponysay --short-option h --long-option help                                      --description 'help of ponysay'
complete --command ponysay --short-option v --long-option version                                   --description 'version of ponysay'
complete --command ponysay --short-option l --long-option list                                      --description 'list pony files'
complete --command ponysay --short-option L --long-option altlist                                   --description 'list pony files with alternatives'
complete --command ponysay --short-option f --long-option pony    --arguments "$ponies"             --description 'pony'
complete --command ponysay --short-option q --long-option quote   --arguments "$quoters" --no-files --description 'pony'
complete --command ponysay --short-option W --long-option wrap    --arguments 'Integer'             --description 'specify the column when the message should be wrapped'
complete --command ponysay                                        --arguments 'MESSAGE'

set -e ponies
set -e quoters