1660 Commits

Author SHA1 Message Date
Ville Skyttä
e452f2e8d6 cal,chfn,chsh,dmesg,eject,hexdump,look,newgrp,renice,runuser,su,write: Deprecate on Linux in favor of util-linux ones (Debian: #737672) 2014-02-08 19:35:48 +02:00
Ville Skyttä
e201d1be7e _*: Install our deprecated completions too, try loading them secondarily 2014-02-08 15:33:10 +02:00
Ville Skyttä
01fd3b4f55 Bump copyright years to 2014. 2014-01-21 20:01:43 +02:00
Ville Skyttä
fcc9545b44 _known_hosts_real: Exclude %h HostName entries (RedHat: #1015935). 2013-10-07 20:06:15 +03:00
Ville Skyttä
50ae579273 _known_hosts_real: Pre-expand \t instead of relying on sed supporting it (Alioth: #314393). 2013-08-26 20:44:46 +03:00
Igor Murzov
a282d0254c _longopt: Run commands in C locale.
This is a follow-up to commit 822735146f
2013-08-14 12:04:33 +04:00
Ville Skyttä
3f144beb72 export, _variables: Do TZ= completion (Redhat: #994646).
Could do this for env, declare, and typeset as well, especially
when/if we have more known env vars implemented in _variables.
2013-08-08 12:49:11 +03:00
Ville Skyttä
d99c2203b9 Clean up/compact various globs. 2013-05-09 13:42:32 +03:00
Ville Skyttä
497c20902a Use == instead of =. 2013-04-08 23:04:11 +03:00
Thilo Six
a9db458339 _mac_addresses: Use explicit C locale for ifconfig (Debian: #704832). 2013-04-06 21:11:54 +03:00
David Paleino
3085c7e121 Releasing 2.1 2013-04-05 12:54:58 +02:00
Ville Skyttä
f0a3147179 unzip/zipinfo: Associate with more StarOffice extensions. 2013-03-27 21:02:54 +02:00
Ville Skyttä
7afc97366f patch: New full featured completion. 2013-03-24 22:59:29 +02:00
AllKind
e191799dea Fix __ltrim_colon_completions() fail on parameter (\$1) containing a glob. 2013-03-09 15:30:01 +04:00
Ville Skyttä
eef7941842 _available_interfaces: Try with "ip link" if ifconfig is N/A also with -a. 2013-02-04 17:27:07 +02:00
Ville Skyttä
a77d3d5505 pyflakes: New completion. 2013-02-02 10:37:22 +02:00
Ville Skyttä
3064e9d707 _available_interfaces: Without -a, try with "ip link" if ifconfig is N/A. 2013-02-01 20:40:49 +02:00
Ville Skyttä
aa516acdc5 _ip_addresses: Try with "ip addr" if ifconfig is not available. 2013-02-01 20:27:07 +02:00
Ville Skyttä
b78ef321be _mac_addresses: Try local interfaces with "ip link" if ifconfig is N/A. 2013-02-01 20:17:03 +02:00
Ville Skyttä
87dede96c0 _mac_addresses: Try ARP cache with "ip neigh" if arp is not available. 2013-02-01 19:43:21 +02:00
Ville Skyttä
f6df76e8ca _mac_addresses: Fix with net-tools' ifconfig that outputs ether, not HWaddr. 2013-02-01 19:43:18 +02:00
Ville Skyttä
c4cc3eb63b Brown paper bag fix for the previous commit. 2013-01-25 00:19:23 +02:00
Ville Skyttä
fea1c178b4 Avoid sourcing dirs in completion loader to avoid fd leaks (RedHat: #903540). 2013-01-25 00:07:29 +02:00
Ville Skyttä
f917b750dd _known_hosts_real: Filter ruptime stdout error spewage (Alioth: #313893). 2012-11-06 21:55:57 +02:00
Igor Murzov
3b93c22a5b Update copyright year and release number. 2012-11-06 16:50:48 +04:00
Igor Murzov
2472fad5de _command_offset: Restore compopts properly (Alioth: #313890)
This commit is basicaly a more robust version of 5051b1787a, which made
invalid assumptions about a completion specification.
2012-11-06 16:36:52 +04:00
Igor Murzov
97eb4daa62 zathura: Add simple completion for zathura document viewer. 2012-11-03 19:43:30 +04:00
Igor Murzov
e29c6bc872 wget: New completion.
Initial patch by: Raphaël Droz <raphael.droz@gmail.com>
2012-10-20 19:59:28 +04:00
Igor Murzov
822735146f _parse_help, _parse_usage: Run commands in C locale.
This avoids divergence of options for a localized and non-localized
versions of programs. _parse_help may even get into infinite loop
with localized input.
2012-09-06 18:16:44 +04:00
wonder.mice
fdb080ff89 Fixed tilde expanding in _filedir_xspec
With this patch completions that use _filedir_xspec will not expand
tilde when "expand-tilde" option is set to off.

This patch fixes:

1. What:   vim ~/<TAB>
   Before: vim /home/mice/
   After:  vim ~/

2. What:   vim ~/<TAB><TAB>
   Before: vim /home/mice/
           + list of folders and files
   After:  vim ~/
           + list of folders and files

3. What:   vim ~/Doc
   Before: vim /home/mice/Documents/
   After:  vim ~/Documents/
2012-09-06 04:31:03 +04:00
Christian von Roques
dc150937d1 Fix __reassemble_comp_words_by_ref for $COMP_CWORD == ${#COMP_WORDS[@]} 2012-08-11 21:07:31 +04:00
Igor Murzov
3c49af9ec9 opera: Handle options. 2012-08-09 15:36:08 +04:00
Martin Ueding
3f9fe7a853 Remove trailing whitespace
Remove all trailing whitespace since that is not needed anyway.
2012-07-22 19:29:39 +03:00
Ville Skyttä
ca53345219 Fine tune previous commit. 2012-07-09 00:00:23 +03:00
Jeroen Hoek
7c7b5608c8 Add support for OOXML document format extensions to unzip completion. 2012-07-08 23:57:54 +03:00
Jeroen Hoek
6a71ee504c Add more complete OpenDocument support to unzip completion. 2012-07-08 23:48:31 +03:00
Ville Skyttä
709d6e0690 *_tilde*: Escape tilde in [[ $1 == \~* ]] tests (RedHat: #817902). 2012-06-14 21:54:32 +03:00
Guillaume Rousse
127a65fee2 Merge branch 'master' of git+ssh://git.debian.org/git/bash-completion/bash-completion 2012-06-06 15:41:18 +02:00
Guillaume Rousse
67d30da6b7 add xz compression extension for kernel modules 2012-06-06 10:45:43 +02:00
Ville Skyttä
e0dc594d2a qiv: Add *.svg. 2012-06-05 21:12:26 +03:00
Ville Skyttä
f990d5e617 Comment spelling fix. 2012-05-31 00:03:41 +03:00
Ville Skyttä
32f223963a _realcommand: Try greadlink before readlink (Alioth: #313659).
Some systems' readlink does not have -f, but may have the GNU readlink
which does installed as greadlink.
2012-05-30 23:56:58 +03:00
Igor Murzov
ccda61d928 _expand: Suppress unwanted bash error messages (Alioth: #313497) 2012-04-18 20:33:11 +04:00
Ville Skyttä
a062777d4b lyx: Remove simple completion, upstream has more complete one (Debian: #662203) 2012-03-11 19:44:34 +02:00
Igor Murzov
d2aedc83e1 su: Add linux-specific completion 2012-02-17 05:14:51 +04:00
Igor Murzov
98f90ebdf8 _filedir: Properly quote paths to avoid unexpected expansion. 2012-01-20 05:11:17 +04:00
guns
6f3d650e23 Workaround bash bug that fails to complete <, >
There is a bug in bash that causes completions of some of the
redirection operators to fail if a default completion function is
defined.

The details are in the following bug-bash mailing list message, but put
simply, when completing a command line "> ", bash mistakenly searches
the completions table for an empty string, and failing that, sends
the default completion function not an empty string, but the actual
redirection operator '>' as the first argument.

http://lists.gnu.org/archive/html/bug-bash/2012-01/msg00045.html

This is quite simply worked around for the moment by defining the
_minimal completion for the empty string. This allows filename
completion for people who like to:

    $ > cats.txt        # Truncate files quickly
    $ >> cats.txt       # Use redirection as a quick 'touch'
    $ < cats.txt cat    # Use redirection at the beginning of the
                        # command line

Given the slow bash upgrade cycle for various operating systems, a
workaround for this issue will be necessary for a long time.
2012-01-18 23:35:54 +02:00
Igor Murzov
db53fc77a5 _modules: Ignore error messages. 2012-01-13 00:17:51 +04:00
David Paleino
2ad325d4af Revert "Fix completion loading when a symlink is sourced, thanks to Jonathan Nieder"
This reverts commit 318759c8497cfce3704bc1b97c41459a5be08f7b.
2012-01-11 21:48:35 +01:00
David Paleino
318759c849 Fix completion loading when a symlink is sourced, thanks to Jonathan Nieder 2012-01-11 14:37:15 +01:00