not using .py

This commit is contained in:
Mattias Andrée 2012-08-20 10:11:25 +02:00
parent 503ae9db3f
commit 37b11cd5de
2 changed files with 4 additions and 4 deletions

View file

@ -9,11 +9,11 @@ _ponysay()
COMPREPLY=( $( compgen -W "$options" -- "$cur" ) ) COMPREPLY=( $( compgen -W "$options" -- "$cur" ) )
if [ $prev = "-f" ] || [ $prev = "--pony" ]; then if [ $prev = "-f" ] || [ $prev = "--pony" ]; then
ponies=$('/usr/bin/ponysay.py' --onelist) ponies=$('/usr/bin/ponysay' --onelist)
COMPREPLY=( $( compgen -W "$ponies" -- "$cur" ) ) COMPREPLY=( $( compgen -W "$ponies" -- "$cur" ) )
elif [ $prev = "-q" ] || [ $prev = "--quote" ]; then elif [ $prev = "-q" ] || [ $prev = "--quote" ]; then
quoters=$('/usr/bin/ponysay.py' --quoters) quoters=$('/usr/bin/ponysay' --quoters)
COMPREPLY=( $( compgen -W "$quoters" -- "$cur" ) ) COMPREPLY=( $( compgen -W "$quoters" -- "$cur" ) )
elif [ $prev = "-W" ] || [ $prev = "--wrap" ]; then elif [ $prev = "-W" ] || [ $prev = "--wrap" ]; then

View file

@ -3,8 +3,8 @@
# #
# Author: Elis Axelsson <etu AT elis DOT nu> # Author: Elis Axelsson <etu AT elis DOT nu>
set -g ponies ('/usr/bin/ponysay.py' --onelist) set -g ponies ('/usr/bin/ponysay' --onelist)
set -g quoters ('/usr/bin/ponysay.py' --quoters) set -g quoters ('/usr/bin/ponysay' --quoters)
complete --command ponysay --short-option h --long-option help --description 'help of ponysay' complete --command ponysay --short-option h --long-option help --description 'help of ponysay'