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

Re: zsh 4.x bug in completion?



Stefan `Sec` Zehl wrote:


So i go to the beginning of the line, and add "sud"-<TAB>. The line now
looks like this:

| nuyen% sudo echo test


Use new completion (you are better off to remap TAB to complete-word instead of expand-or-coplete)

{pts/1}% zsh -f
localhost% autoload -U compinit; compinit
localhost% zstyle ':completion:*' completer _oldlist _complete _match _prefix
localhost%  zstyle ':completion:*' add-space true
localhost% setopt completeinword
localhost% echo test
test
localhost% sudTABecho  test
localhost% sudo echo test
test


-andrej






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