From: Bill Kendrick <nbs@so...> - 2009-09-09 19:33:54
I added a very basic BASH tab-completion file for Tux Paint.
It understands, more-or-less, all of the command-line options.
(So you can do, e.g., "tuxpaint --no[tab][tab]" to see all of the
default features you can turn off: sound, printing, etc.)
I'm not 100% clear on where to INSTALL the file, esp. in a multi-platform
(not just Linux/Unix/POSIX/whatever) way. For now, the Makefile sticks it
in $(DESTDIR)/etc/bash_completion.d/ (Where "$DESTDIR" is usually just
used by packagers.)
That is, it does NOT consider "$PREFIX" (which, for a general user
installing from source, is usually "/usr/local/"). I did that because
BASH on my system (Kubuntu 9.04) doesn't seem to notice the existence
of a "/usr/local/etc/bash_completion.d/" directory. And I couldn't find
any definitive way of figuring out what to stick in the Makefile.
(For our configuration file, we can stick it in /usr/local/etc/tuxpaint/
because we then TELL Tux Paint that that's where it is, via a "-D" (#define)
to the C compiler.)
Google searching mostly came up with BASH-related code and packaging.
(What I should do is poke around the source to Inkscape or Mplayer or
something.) Someone on #bash IRC channel on freenode said /etc seemed fine.
And what I'm doing with the Windows target is based on what we do for CONFDIR.
("COMPLETIONDIR=win32/bdist" during the install step.)
No idea what to do, if anything, on Mac. (I see lots of clues that
BASH tab completion can be utilized on OS X. But I'll leave it to Martin
to figure out what to do with the file, and how to do it in the Xcode
I happily accept patches to both the Makefile, and the completion file
( src/tuxpaint-completion.bash in CVS).
Sent from my computer
On Wed, Sep 9, 2009 at 1:33 PM, Bill Kendrick <nbs@...> wrote:
> No idea what to do, if anything, on Mac. (I see lots of clues that
> BASH tab completion can be utilized on OS X. But I'll leave it to Martin
> to figure out what to do with the file, and how to do it in the Xcode
I'll look into it once I get my home Internet connection restored sometime
next week (back from Beijing now)...
From: Bill Kendrick <nbs@so...> - 2009-09-11 19:55:24
On Fri, Sep 11, 2009 at 01:41:19PM -0600, Martin Fuhrer wrote:
> I'll look into it once I get my home Internet connection restored sometime
> next week (back from Beijing now)...
Thanks! And welcome back!!!
Sent from my computer