mirror of
https://github.com/erkin/ponysay.git
synced 2024-11-22 12:27:59 +01:00
not using .py
This commit is contained in:
parent
503ae9db3f
commit
37b11cd5de
2 changed files with 4 additions and 4 deletions
|
@ -9,11 +9,11 @@ _ponysay()
|
|||
COMPREPLY=( $( compgen -W "$options" -- "$cur" ) )
|
||||
|
||||
if [ $prev = "-f" ] || [ $prev = "--pony" ]; then
|
||||
ponies=$('/usr/bin/ponysay.py' --onelist)
|
||||
ponies=$('/usr/bin/ponysay' --onelist)
|
||||
COMPREPLY=( $( compgen -W "$ponies" -- "$cur" ) )
|
||||
|
||||
elif [ $prev = "-q" ] || [ $prev = "--quote" ]; then
|
||||
quoters=$('/usr/bin/ponysay.py' --quoters)
|
||||
quoters=$('/usr/bin/ponysay' --quoters)
|
||||
COMPREPLY=( $( compgen -W "$quoters" -- "$cur" ) )
|
||||
|
||||
elif [ $prev = "-W" ] || [ $prev = "--wrap" ]; then
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
#
|
||||
# Author: Elis Axelsson <etu AT elis DOT nu>
|
||||
|
||||
set -g ponies ('/usr/bin/ponysay.py' --onelist)
|
||||
set -g quoters ('/usr/bin/ponysay.py' --quoters)
|
||||
set -g ponies ('/usr/bin/ponysay' --onelist)
|
||||
set -g quoters ('/usr/bin/ponysay' --quoters)
|
||||
|
||||
|
||||
complete --command ponysay --short-option h --long-option help --description 'help of ponysay'
|
||||
|
|
Loading…
Reference in a new issue