Re: [Tracker] Please ship bash-completions in /usr/share/bash-completion/completions



See http://anonscm.debian.org/cgit/bash-completion/bash-completion.git/tree/README

2015-05-12 22:42 GMT+02:00 Michael Biebl <mbiebl gmail com>:
Hi,

Please consider shipping the tracker bash-completion script in
/usr/share/bash-completion/completions. That's the preferred location
nowadays.

The file should be named after the binary, i.e. 'tracker'. This way,
the completion is loaded on-demand.

You can get the bash-completion directory via
$PKG_CONFIG --variable=completionsdir bash-completion

systemd e.g. uses this in configure.ac:

AC_ARG_WITH([bashcompletiondir],
        AS_HELP_STRING([--with-bashcompletiondir=DIR], [Bash
completions directory]),
        [],
        [AS_IF([$($PKG_CONFIG --exists bash-completion)], [
                with_bashcompletiondir=$($PKG_CONFIG
--variable=completionsdir bash-completion)
        ] , [
                with_bashcompletiondir=${datadir}/bash-completion/completions
        ])])



--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?



-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]