[Lunar-commits] CVS: moonbase/games/fortune/profile.d
fortune-completion.rc, 1.1, 1.2
Chad Kittel
v3rt1g0 at lunar-linux.org
Thu Sep 9 01:18:55 UTC 2004
Update of /var/cvs/lunar/moonbase/games/fortune/profile.d
In directory espresso.lunar-linux.org:/tmp/cvs-serv12197/fortune/profile.d
Modified Files:
fortune-completion.rc
Log Message:
Fixed fortune's tab-completion script so that the offensive cookies work.
Thank you perldude for pointing out that they were not working.
Index: fortune-completion.rc
===================================================================
RCS file: /var/cvs/lunar/moonbase/games/fortune/profile.d/fortune-completion.rc,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- fortune-completion.rc 7 Sep 2004 23:06:09 -0000 1.1
+++ fortune-completion.rc 9 Sep 2004 01:18:53 -0000 1.2
@@ -4,6 +4,6 @@
{
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 ))
+ COMPREPLY=( $( compgen -W "`ls -d /usr/share/games/fortunes/* /usr/share/games/fortunes/*/* | sed -e s:.dat:: -e s:/usr/share/games/fortunes/::`" $cur ))
}
complete -F _fortune fortune
More information about the Lunar-commits
mailing list