when invoked with the -d flag.
_expand() created for doing tilde expansion on path names. It returns the
number of elements in the COMPREPLY array. _zip(), _cd() and
_file_and_dir() now call this.
fixed minor bug in _file_and_dir() that was removing the '-' from the front of
its parameter
unzip also unpacks .jar files
add ggv to commands that take PostScript files
mplayer CAN'T use MP3 files
_command() wasn't redirecting stderr, so would display a harmless error message
when in 'sudo x <Tab>', 'x' didn't have its own compspec
in 'sudo x $1 $2 $n', _command() was calling x's own completion function and
passing the rest of the command line as a single parameter, rather than as
individual tokens. This is fixed, but there may be other breakage as a
result. Need to do more testing.
complete on a command, then complete according to that command's own
completion specification. E.g. sudo rpm <Tab> would further complete
according to _rpm(), as if it were being called directly
iptables completion was being installed, even if it were not in user's PATH
add jadetex and pdfjadetex to commands that complete on tex files
improved tar completion to handle .tgz and .tar files
inproved tar completion to perform file completion when c*f is the first
parameter
include --repackage for rpm -[ei]
fix _cd so that it completes on directories with an embedded space
fix _file_and_dir so that it completes on directories with an embedded space
change embedded tabs in the file to $'\t' syntax
be a bit more elegant in determining location of showmount in _mount()
condense awk|grep combo in _configure() to a single sed command
be more intelligent about parsing for exclusion (-X) compspecs when
binding commands to _file_and_dir()
- use -g, not -u for group completion (duh!)
- avoid unnecessary use of $COMPREPLY_SAVE in _ssh/_scp
- use '-' as prefix (-P) to kill, not '%', and put it *before* command
- default to filename completion on _scp
- removed a couple of definitions of $prev that weren't actually used
- source ~/.bash_completion if it exists
- fixed bug in _known_hosts that caused keys to be printed from known_hosts2
files
- made _ssh a little more intelligent
- added _scp
- made _cd expand ~ in directory specs
- declared i as a local variable in many functions