2012-08-19 10:05:29 +02:00
|
|
|
# FISH completions for ponysay
|
2012-07-19 14:56:43 +02:00
|
|
|
# https://github.com/erkin/ponysay/
|
|
|
|
#
|
|
|
|
# Author: Elis Axelsson <etu AT elis DOT nu>
|
|
|
|
|
2012-08-20 10:11:25 +02:00
|
|
|
set -g ponies ('/usr/bin/ponysay' --onelist)
|
2012-08-22 16:25:35 +02:00
|
|
|
set -g xponies ('/usr/bin/ponysay' ++onelist)
|
2012-08-20 10:11:25 +02:00
|
|
|
set -g quoters ('/usr/bin/ponysay' --quoters)
|
2012-08-21 17:26:21 +02:00
|
|
|
set -g balloons ('/usr/bin/ponysay' --balloonlist)
|
2012-07-19 21:28:35 +02:00
|
|
|
|
2012-08-18 02:34:54 +02:00
|
|
|
|
2012-08-22 16:25:35 +02:00
|
|
|
## TODO: update with options [see info manual]: +l +L ++list ++altlist ++file --file ++pony
|
2012-08-21 21:41:08 +02:00
|
|
|
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 names'
|
|
|
|
complete --command ponysay --short-option L --long-option altlist --description 'list pony names with alternatives'
|
|
|
|
complete --command ponysay --short-option B --long-option balloonlist --description 'list balloon style names'
|
|
|
|
complete --command ponysay --short-option f --long-option pony --arguments "$ponies" --description 'pony'
|
2012-08-22 16:25:35 +02:00
|
|
|
complete --command ponysay --short-option F --arguments "$xponies" --description 'extra pony'
|
2012-08-21 21:41:08 +02:00
|
|
|
complete --command ponysay --short-option q --long-option quote --arguments "$quoters" --description 'pony'
|
|
|
|
complete --command ponysay --short-option b --long-option balloon --arguments "$balloons" --description 'balloon style'
|
|
|
|
complete --command ponysay --short-option W --long-option wrap --arguments 'Integer' --description 'specify the column when the message should be wrapped'
|
2012-08-19 10:54:33 +02:00
|
|
|
complete --command ponysay --arguments 'MESSAGE'
|
2012-07-19 21:28:35 +02:00
|
|
|
|
2012-08-22 16:25:35 +02:00
|
|
|
|
2012-08-18 16:37:55 +02:00
|
|
|
set -e ponies
|
2012-08-22 16:25:35 +02:00
|
|
|
set -e xponies
|
2012-08-18 02:34:54 +02:00
|
|
|
set -e quoters
|
2012-08-21 17:26:21 +02:00
|
|
|
set -e balloons
|