1647 Commits

Author SHA1 Message Date
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
Igor Murzov
2e975278c5 _command_offset: Properly quote arguments of eval (Alioth: #313499). 2012-01-10 03:50:00 +04:00
Igor Murzov
b515b0dd38 Merge remote-tracking branch 'origin/sudo'
* origin/sudo:
  sudoedit: New completion.
  sudo: Fix option list parsing
  sudo: Handle options (Alioth: #311414).
2012-01-09 16:25:00 +04:00
David Paleino
5eaf276b5f Release 1.99 -- hopefully the last 2.0 preview 2012-01-08 00:17:28 +01:00
Ville Skyttä
fabf0e2d35 Some trivial nounset error fixes. 2012-01-01 14:46:59 +02:00
Ville Skyttä
d4416acccc _filedir, _tilde: Ignore compopt stderr for direct invocations in unit tests. 2012-01-01 14:42:39 +02:00
Ville Skyttä
5fcaad8756 cleanups: Drop some no longer needed stderr redirections. 2011-12-26 21:47:51 +02:00
Ville Skyttä
9ba0476b9e Fix BASH_COMPLETION_COMPAT_DIR comment. 2011-12-26 16:09:00 +02:00
Igor Murzov
91a61afe59 sudo: Handle options (Alioth: #311414). 2011-12-20 19:56:37 +04:00
Florian Hubold
bb5200695b xv: Add *.eps and *.ps to filename completions (Alioth: #313477). 2011-12-17 11:19:40 +02:00
Ville Skyttä
a229ea46e7 _parse_help, _parse_usage: More command arg sanitization.
http://thread.gmane.org/gmane.comp.shells.bash.completion.devel/3620
2011-12-14 21:54:49 +02:00
Ville Skyttä
260e2a1eeb quote: Preserve leading, trailing, and consecutive whitespace. 2011-12-12 00:22:09 +02:00
Raphaël Droz
723b0771ad _ip_addresses: Make it locale agnostic. 2011-12-11 22:26:52 +02:00
Ville Skyttä
17c9722733 _known_hosts_real: Support > 1 files per *KnownHostsFile line (Debian: #650514). 2011-12-05 21:58:04 +02:00