Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

zsh doesn't complete for tar, zip, possibly other files

Hi guys

The subject is pretty much my problem.  I'd be very grateful if
anybody is able to help me resolve this one.

cheers, Lewis

partlow ~ % ls *.zip
First Ascent - Disk 2.zip  First Ascent - DVD Extras.zip  foo.zip
partlow ~ % unzip [hammering TAB]

Interestingly for tar I get different results:

partlow ~ % ls *.tar
partlow ~ % tar [TAB]
A  -- append to an archive
c  -- create a new archive
f  -- specify archive file or device
t  -- list archive contents
u  -- update archive
v  -- verbose output
x  -- extract files from an archive
partlow ~ % tar xvf [hammering TAB]

So clearly completion is trying to do something.  Other useful info:

partlow ~ % zsh --version
zsh 4.3.10 (x86_64-unknown-linux-gnu)

I believe these are all of my completion settings in .zshrc:

# The following lines were added by compinstall

zstyle ':completion:*' completer _complete _ignored _approximate _prefix
zstyle ':completion:*' expand suffix
zstyle ':completion:*' file-sort access
zstyle ':completion:*' ignore-parents parent pwd ..
zstyle ':completion:*' list-colors ''
zstyle ':completion:*' list-prompt '%SAt %p: Hit TAB for more, or the
character to insert%s
zstyle ':completion:*' matcher-list '' 'l:|=* r:|=*' 'r:|[._-]=**
r:|=**' 'm:{[:lower:][:up
zstyle ':completion:*' max-errors 3 numeric
zstyle ':completion:*' menu select=1
zstyle ':completion:*' preserve-prefix '//[^/]##/'
zstyle ':completion:*' prompt 'list of corrections numerrs=%e'
zstyle ':completion:*' select-prompt '%SScrolling active: current
selection at %p%s'
zstyle ':completion:*' squeeze-slashes true
zstyle :compinstall filename '/home/lt203398/.zshrc'

autoload -Uz compinit
# End of lines added by compinstall

# kill pid/process tab-complete list
zstyle ':completion:*:*:kill:*' menu yes select
zstyle ':completion:*:kill:*'   force-list always

Messages sorted by: Reverse Date, Date, Thread, Author