Ville Skyttä
90ebb7eb54
(testsuite): Add basic gnokii test case
2015-05-11 12:14:31 +03:00
Ville Skyttä
b07e355111
gnokii: Various minor and cosmetic fixes
2015-05-11 12:13:41 +03:00
Raphaël Droz
3eb1b0dda8
gnokii: New completion
...
http://lists.alioth.debian.org/pipermail/bash-completion-devel/2012-October/004634.html
2015-05-11 12:09:22 +03:00
Ville Skyttä
40c764af57
_filedir: Avoid some unnecessary work with -d
2015-05-11 00:19:57 +03:00
Tristan Wibberley
f9115ce0bb
make: Add __BASH_MAKE_COMPLETION__ variable
...
This variable is there so that makefiles can avoid adding targets that shouldn't be offered.
A typical example would be targets added to dependency files by the -MP option to gcc.
2015-04-19 16:02:40 +03:00
Ville Skyttä
80c2bb6964
_filedir: Remove unused variable
2015-02-20 14:32:02 +02:00
Ville Skyttä
d2920b7e79
_filedir: Fix overquoted argument to compgen -d (RedHat: #1171396 )
2015-02-19 22:04:38 +02:00
Ville Skyttä
d423969756
2015
2015-02-17 21:33:00 +02:00
Ville Skyttä
1d25d72ca8
Load user completions from $BASH_COMPLETION_USER_DIR/completions
...
Fall back to XDG_DATA_HOME/bash-completion/completions or
~/.local/share/bash-completion/completions if not set.
Thanks to Raphaël Droz.
2015-02-16 22:17:34 +02:00
Ville Skyttä
caaa4745e4
Revert "README: Don't hardcode /etc in cmake fallback dir"
...
This reverts commit 2c5efeec3a3b8cf29dd2f161935e786988d9dc36.
Dunno if there's a standard way to refer to /etc in cmake after all.
2015-02-15 11:17:34 +02:00
Ville Skyttä
2c5efeec3a
README: Don't hardcode /etc in cmake fallback dir
2015-02-15 11:04:11 +02:00
Ville Skyttä
889718be68
README: Add cmake usage example
2015-02-15 10:45:13 +02:00
Ville Skyttä
3a8e7bd0fe
README: Add autotools and cmake tips
2015-02-15 10:02:22 +02:00
Ville Skyttä
ba79e9e579
Drop reference to no longer used sysconf_DATA
2015-02-15 10:01:43 +02:00
Ville Skyttä
6a1bf8d114
synclient: New completion
2015-02-06 20:38:39 +02:00
Ville Skyttä
edea6cb6da
tune2fs: Add missing return in -M arg completion
2015-02-03 07:56:44 +02:00
Ville Skyttä
6a4ad49fa5
reptyr: Rename file to _reptyr to avoid conflict with upstreamed completion
...
https://github.com/nelhage/reptyr/pull/53
2015-02-03 07:55:22 +02:00
Ville Skyttä
e687c3a108
cppcheck: Option argument (non-)completion update
2015-01-25 16:37:35 +02:00
Michael Gold
c725e6b195
profile.d: Avoid some warnings from shells in "nounset" mode (Debian: #776160 )
2015-01-25 16:27:14 +02:00
Ville Skyttä
3cf50a1437
dropuser: New completion
2015-01-18 22:13:33 +02:00
Ville Skyttä
7999f28f62
createuser: New completion
2015-01-18 22:13:27 +02:00
Ville Skyttä
e71b4522d1
createdb, dropdb: Drop -o default, it does not appear to do anything good here
2015-01-18 22:01:47 +02:00
Ville Skyttä
23bf3bd412
tshark: Simplify cut usage
2014-12-29 11:37:38 +02:00
Ville Skyttä
a592a09cc6
mcrypt: Simplify -m arg completion
2014-12-29 11:35:16 +02:00
Ville Skyttä
377e24024e
(testsuite): Add mcrypt -a and -m argument completion tests
2014-12-29 11:30:54 +02:00
Peter Cordes
3567d9354f
upstart support for service completion
...
initctl list works for unprivileged users.
Wasn't sure what file to check to detect that upstart was present, but
/sbin should always be mounted, and upstart itself provides
/sbin/upstart-udev-bridge, and it's not a conffile in /etc that someone
could move if they wanted to on their local system. upstart-dbus-bridge
isn't present on Ubuntu 12.04, but socket and udev bridge both are.
(Do Debian kFreeBSD or GNU/Hurd have udev? nvm, Debian kFreeBSD doesn't
ship upstart at all.)
http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/lucid/upstart/lucid-updates/view/head:/debian/changelog
indicates that the udev bridge existed as far back as Ubuntu 10.04
(Lucid), and might have been the first bridge. udev is probably here to stay, so use that, even udev is Linux only, unlike sockets.
Another possiblity would be to check /usr/share/man/man7/upstart.7.gz,
but that looks brittle.
I think it's important to check that the system is using an upstart init,
so you don't run initctl when completing in a root shell on another kind
of system. At worst, reboots, at best generates system log messages.
2014-12-17 14:41:39 +02:00
Ville Skyttä
976ad96007
strings: Fix -T/--target arg completion with non-English locale
2014-12-15 12:43:55 +02:00
Ville Skyttä
6a60025e01
chrome, firefox etc: Complete on *.pdf
2014-12-15 12:03:02 +02:00
Ville Skyttä
dfb2d01bab
ccache: Add -o/--set-config arg name completion
2014-11-30 13:06:09 +02:00
Ville Skyttä
89add74ae0
gphoto2: Replace tail with awk
2014-11-16 12:26:19 +02:00
Ville Skyttä
7d3de619d1
*: Invoke command to be completed, not its basename
2014-11-16 12:18:41 +02:00
Ville Skyttä
7d66285b42
gphoto2: Fix split argument handing, and colon treatment in --port args
2014-11-16 12:10:35 +02:00
Ville Skyttä
32e6e49088
_completion_loader: Protect compgen from -* leakage (Debian: #769399 )
2014-11-15 21:37:47 +02:00
Ville Skyttä
ed07b18e61
Actually install the lz4 completion
2014-11-10 23:22:38 +02:00
Ville Skyttä
52d8316c5c
_pnames: Add -s for producing (possibly) truncated names (RedHat: #744406 )
...
pgrep and pkill actually expect these instead of the full names.
2014-11-10 22:36:49 +02:00
Ville Skyttä
9444a8742e
(testsuite) Add cd in dir without subdirs or CDPATH test case
2014-11-01 21:49:15 +02:00
Ville Skyttä
882649b712
Protect various compgen invocations from -* leakage (Debian: #766163 )
2014-11-01 21:48:35 +02:00
Ville Skyttä
4038c71357
pigz, unpigz: Handle *.zz
2014-09-17 19:40:02 +03:00
Barry Warsaw
a9c556ccad
_init_completion: Handle cword < 0 (LP: #1289597 )
...
Previously only bash 4.3 seemed to provoke this, but now with the
empty command consistency tweak it occurs with earlier as well.
2014-09-17 19:36:08 +03:00
Ville Skyttä
7394d744ae
_completion_loader: Set empty command to _EmptycmD_ for cross version compat
...
bash 4.3 gives us _EmptycmD_ for empty commands, while earlier
versions give us the empty string; set it to _EmptycmD_ for those as
well for consistency.
2014-09-17 19:22:56 +03:00
Ville Skyttä
fa064e8563
Comment update
2014-09-17 19:18:45 +03:00
Ville Skyttä
42e1f344b7
rpmbuild: Complete *.spec on --nobuild
2014-08-30 13:36:12 +03:00
Patrick Monnerat
e879eb0a17
rpmbuild: Complete *.spec on --clean (RedHat: #1132959 )
2014-08-30 13:35:57 +03:00
Ville Skyttä
852e0f60f0
mplayer, *xine: Complete on *.mts (Debian: #759219 )
2014-08-29 19:32:03 +03:00
Ville Skyttä
86df56d5ec
ant: Support buildfile set in $ANT_ARGS (Alioth: #314735 )
2014-07-20 11:42:09 +03:00
Ville Skyttä
40db483174
(testsuite) Add ant -f <buildfile> test case
2014-07-20 11:33:31 +03:00
Ville Skyttä
98d6b5e440
ant: Don't offer more completions after options that exit
2014-07-20 11:20:40 +03:00
Ville Skyttä
d259e71758
7z, adb: Trivial cleanups
2014-07-19 19:15:49 +03:00
Ville Skyttä
eb79f9d97f
python(3): Add -X argument non-completion
2014-07-19 19:12:11 +03:00
Ville Skyttä
7c5c622dda
xsltproc. TODO fix for previous commit
2014-07-19 17:17:53 +03:00