[Lunar-commits] CVS: moonbase/games/fortune/profile.d fortune-completion.rc, NONE, 1.1

Chad Kittel v3rt1g0 at lunar-linux.org
Tue Sep 7 23:06:12 UTC 2004


Update of /var/cvs/lunar/moonbase/games/fortune/profile.d
In directory espresso.lunar-linux.org:/tmp/cvs-serv27727/fortune/profile.d

Added Files:
	fortune-completion.rc 
Log Message:
Added a tab completion file i just whipped together.


--- NEW FILE: fortune-completion.rc ---
shopt -s extglob

_fortune ()
{
	local cur
	cur=${COMP_WORDS[COMP_CWORD]}
	COMPREPLY=( $( compgen -W "`ls /usr/share/games/fortunes/* | sed -e s:.dat:: -e s:/usr/share/games/fortunes/:: -e s/.*://`" $cur ))
}
complete -F _fortune fortune	



More information about the Lunar-commits mailing list