459 Commits

Author SHA1 Message Date
Ville Skyttä
8ab6708302 Drop dead code.
Availability of vncviewer is already checked with "have".
2009-12-25 12:05:44 +02:00
Ville Skyttä
894c877827 Add scp option completion. 2009-12-25 11:57:33 +02:00
Ville Skyttä
e0acaf8ed2 Split sshfs from contrib/ssh to contrib/sshfs. 2009-12-24 16:18:27 +02:00
Ville Skyttä
e308b07526 Add ssh -o BindAddress suboption completion. 2009-12-24 16:00:34 +02:00
Ville Skyttä
7c4de4a3ca Use the usual (local) $prev and $cur in _ssh_suboption. 2009-12-24 15:57:43 +02:00
Ville Skyttä
b56e45eaac Eliminate some duplicate code. 2009-12-24 15:52:05 +02:00
Leonard Crestez
92e7b73564 Improve ssh -o suboption completion (Alioth: #312122). 2009-12-24 15:45:19 +02:00
Jeremie Lasalle Ratelle
e2e1c391ed Fix rsync remote path completion (Alioth: #312173). 2009-12-23 16:18:32 +02:00
Ville Skyttä
ed45c2caaf Sync rsync options with rsync 3.0.6, add --compress-level arg completion. 2009-12-22 20:53:30 +02:00
Ville Skyttä
af90e1d5ad Indentation fixes. 2009-12-22 20:37:53 +02:00
Ville Skyttä
3d9f8206e1 Use awk more to reduce number of invoked commands a bit. 2009-12-21 23:00:31 +02:00
Ville Skyttä
6807b5e72d Replace some echos with printfs. 2009-12-21 00:09:02 +02:00
Ville Skyttä
c755d7becc Replace some uses of ls with printf. 2009-12-20 23:44:33 +02:00
Ville Skyttä
8caddc47cf Protect grep invocations from user aliases (Alioth: 312143). 2009-12-15 23:48:10 +02:00
Ville Skyttä
247ada3cc4 Make k3b option vs filename completion work more like others. 2009-12-15 23:16:31 +02:00
Ville Skyttä
3de141dd76 Get rid of use of unportable -r argument to sed. 2009-12-15 23:09:32 +02:00
Freddy Vulto
0529d738d2 Fix perl completion by removing : from wordbreaks
Specify colon (:) to be excluded as word separator character when doing
_get_cword().
2009-12-10 21:35:53 +01:00
Ville Skyttä
69aa25cd8f Add pm-utils completion. 2009-12-10 22:00:52 +02:00
Ville Skyttä
0f25d9c66f Use sort -u instead of sort | uniq where appropriate. 2009-12-09 23:55:45 +02:00
Freddy Vulto
cbf7e1f963 Merge branch 'master' of git+ssh://fvu-guest@git.debian.org/git/bash-completion/bash-completion 2009-12-09 22:17:02 +01:00
Freddy Vulto
6fe53ef0e6 Fixed completing perl modules containing colons
The solution for bash-4 is to remove the colon from COMP_WORDBREAKS:

   COMP_WORDBREAKS=${COMP_WORDBREAKS//:}

The workaround for bash-3, or bash-4 with a colon in COMP_WORDBREAKS,
is to call:

  __ltrim_colon_completions "$cur"

after completions have been put in COMPREPLY.

See also: E13) Why does filename completion misbehave if a colon appears
in the filename? - Bash FAQ, http://tiswww.case.edu/php/chet/bash/FAQ
2009-12-09 22:13:56 +01:00
Ville Skyttä
98d439ea46 Use grep -E instead of deprecated egrep. 2009-12-09 22:52:00 +02:00
Ville Skyttä
04b7883f7d Use here strings instead of echos where appropriate (part of Alioth: #312143). 2009-12-09 22:46:09 +02:00
Ville Skyttä
09045a63b6 Add update-alternatives --set, --usage, and --slave completions, simplify some bits. 2009-12-09 21:26:12 +02:00
Ville Skyttä
d68c8e508a Indentation fixes. 2009-12-09 21:06:35 +02:00
Ville Skyttä
b4b4b37b96 Fix version in upstream availability comment. 2009-12-09 20:43:21 +02:00
Ville Skyttä
536a780c2e Drop short options from screen completions where long(er) ones exist, add --help and --version. 2009-12-09 01:06:47 +02:00
Ville Skyttä
21d0f70cb0 Use _shells in screen -s. 2009-12-09 01:01:49 +02:00
Ville Skyttä
6e2b17c4e6 Add deprecation status/reason comments. 2009-12-08 19:46:19 +02:00
Ville Skyttä
7248290e6e Deprecate modules completion, upstream modules >= 3.2.7 ships one. 2009-12-08 19:45:35 +02:00
Ted Stern
af26cfb285 Fix modules completion for "(default)" entries. 2009-12-08 19:43:00 +02:00
Ville Skyttä
ab74bd4da9 Redirect dcop/qdbus stderr to /dev/null.
Even if we have e.g. dcop installed we may not have dcopserver running
and providing completions.
2009-11-30 23:16:08 +02:00
Ville Skyttä
a6f79a9a69 Add jarsigner, pack200, and unpack200 completions. 2009-11-30 23:01:32 +02:00
Ville Skyttä
754ee95c1c Drop some unnecessary echos and greps. 2009-11-29 17:16:17 +02:00
Ville Skyttä
e24f69aac3 Fix ssh -m completion. 2009-11-28 12:47:48 +02:00
Ville Skyttä
97e3778cb2 Code cleanups, indentation and line wrapping fixes, comment improvements. 2009-11-28 12:47:48 +02:00
Ville Skyttä
c948a3d411 Reuse "esc" more in scp escaping. 2009-11-28 12:47:48 +02:00
Ville Skyttä
3a44188d52 Fix scp completion for paths containing other backslash escaped chars besides spaces. 2009-11-28 12:47:48 +02:00
Ville Skyttä
ff0f741dcf Fix completion of remote scp filenames with spaces.
Backslash escaping adds 3 backslashes, of which we want to remove 2,
not 4 when unescaping.
2009-11-28 12:47:48 +02:00
Ville Skyttä
032483036f Avoid extended globbing in case labels per current style guidelines. 2009-11-23 20:16:30 +02:00
Ville Skyttä
b424bfe37b Use [[ ]] when appropriate per current style guidelines. 2009-11-23 20:08:52 +02:00
Ville Skyttä
ef025a78ab Try to install/test arch completion only for the mailman one, not coreutils/util-linux-ng. 2009-11-23 00:29:16 +02:00
Freddy Vulto
4230265870 Fix completion of filenames containing colon.
This fixes the auto tests for `finger' and `ssh' on machines where an IPv6 host
"::1" is mentioned in /etc/hosts.
Added helper function __ltrim_colon_completions.

To run the tests:

    ./runCompletion finger.exp ssh.exp
2009-11-22 22:22:35 +01:00
David Paleino
8f42adfa8d Style policy: don't use fancy globbing in case labels 2009-11-22 11:43:26 +01:00
Freddy Vulto
1eb6c14ac1 fix typo in undoing cpio globbing 2009-11-22 09:30:22 +01:00
David Paleino
87fbdc9c18 contrib/cpio: don't use globbing, as per new team policy 2009-11-22 08:33:00 +01:00
David Paleino
9a8fb49fe4 contrib/cpio: added missing completions for -?, --help, --license, --usage, --version and (-p) --to-stdout (Debian: #557436) 2009-11-22 08:22:58 +01:00
Ville Skyttä
36eb06af6b Extract CD/DVD completion from k3b into general functions, use them in mplayer. 2009-11-04 23:12:44 +02:00
Ville Skyttä
41c675e749 sed usage portability fixes: avoid semicolon separated statements in one -e. 2009-11-04 00:16:06 +02:00
Ville Skyttä
5b54c41de5 Fix javadoc, lvm, and mkinitrd (_count_args) local variable leaks. 2009-11-03 22:49:14 +02:00