3615 Commits

Author SHA1 Message Date
Ville Skyttä
2779b66e5d ssh: Complete HostbasedKeyTypes,HostKeyAlgorithms,KexAlgorithms values 2015-06-29 00:09:02 +03:00
Ville Skyttä
cf4c7ebf6c ssh: Query ciphers and macs from ssh before hardcoded fallback 2015-06-29 00:02:12 +03:00
Ville Skyttä
b6ffe261f8 ssh: Add -Q argument completion 2015-06-28 23:54:31 +03:00
Ville Skyttä
d01427df59 sysctl: Return early on --help, --version 2015-06-27 10:45:26 +03:00
Ville Skyttä
e9fe2d9f7b sysctl: Try parsing options from help before usage 2015-06-27 10:41:00 +03:00
Ville Skyttä
1d9e705639 Document how to avoid command_not_found_handler interference 2015-06-23 16:40:23 +03:00
Ville Skyttä
6c2ae9fb18 eog: Complete on *.ppm (RedHat: #1090481) 2015-06-15 22:42:40 +03:00
Ville Skyttä
d049481952 tar: Plug $line var leak 2015-06-01 19:14:51 +03:00
Ville Skyttä
055d1ae59f tar: Style tweaks 2015-06-01 19:14:40 +03:00
Ville Skyttä
a8f450797b (testsuite) Add required "empty" dir for tar 2015-06-01 19:13:27 +03:00
Ville Skyttä
81cfa067cc bsdtar, tar: Remove symlinks from git, have make create them 2015-06-01 19:12:27 +03:00
Pavel Raiskup
8b23c84cc2 tar: rework the completion completely
Use the parsed 'tar --help' output for completion, at least for
GNU tar.  For non-GNU tars use the _posix_tar completion.  Adjust
the testsuite to cover some improvements.
2015-06-01 18:44:22 +03:00
Ville Skyttä
adff509ec5 jshint: New completion 2015-05-21 17:18:21 +03:00
Tristan Wibberley
4b209b0b17 make: Fix detection of intermediate targets where make has changed its database whitespace 2015-05-18 20:45:31 +03:00
Ville Skyttä
1950590367 gnokii: Include and install it 2015-05-11 12:23:30 +03:00
Ville Skyttä
89303303bd gnokii: Fix completions of options that are prefixes for others
e.g. --getsms, --getsecurityscode
2015-05-11 12:21:49 +03:00
Ville Skyttä
ca138d05db gnokii: Drop dead code 2015-05-11 12:21:06 +03:00
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