* Can't complete filename after "-foo" command line arg
@ 2004-05-02 8:51 Kai Grossjohann
0 siblings, 0 replies; only message in thread
From: Kai Grossjohann @ 2004-05-02 8:51 UTC (permalink / raw)
To: zsh-users
I would like to type the following command line:
perl -Mblib script/hyrex_server -dir data_inex03
I would like to use filename completion to enter the argument
"data_inex03". However, it doesn't work right: I type the first
character and then hit TAB and then zsh tells me it's completing
commands and builtin commands, shell functions, reserved words,
parameters, and whatnot
However, if I put an extra arg between "-dir" and the arg I really
want to complete, then it works:
perl -Mblib script/hyrex_server -dir x data_inex03
Is there a way to get the right completion without this workaround?
Please find my completion setup below. I didn't know what I was doing
when I called this friendly completion setup command.
tia,
Kai
# The following lines were added by compinstall
zstyle ':completion:*' auto-description 'specify %d'
zstyle ':completion:*' completer _expand _complete _correct
zstyle ':completion:*' completions 1
zstyle ':completion:*' format 'Completing %d'
zstyle ':completion:*' glob 1
zstyle ':completion:*' list-colors ''
zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' 'r:|[._-/]=** r:|=**' 'l:|=* r:|=*'
zstyle ':completion:*' max-errors 3 numeric
zstyle ':completion:*' menu select=long
zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
zstyle ':completion:*' substitute 1
zstyle ':completion:*' verbose true
zstyle :compinstall filename '/home/kgr/.zshrc'
autoload -U compinit
compinit
# End of lines added by compinstall
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-05-02 8:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-02 8:51 Can't complete filename after "-foo" command line arg Kai Grossjohann
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).