zsh-users
 help / color / mirror / code / Atom feed
* Autocomplet with compdef _precommand
@ 2016-08-30  7:35 Michel
  2016-08-30 17:56 ` Bart Schaefer
       [not found] ` <160830105636.ZM25657__30145.0480045334$1472579856$gmane$org@torch.brasslantern.com>
  0 siblings, 2 replies; 5+ messages in thread
From: Michel @ 2016-08-30  7:35 UTC (permalink / raw)
  To: zsh-users

[-- Attachment #1: Type: text/plain, Size: 531 bytes --]

Hello,

I use zsh (5.0.7) with the autocd option. I create a function start() that
will run another command :

function start (){
    "$@" &> /dev/null &
}

And I add this line to have autocomplet :

compdef _precommand start

But when I run, for example "start ssh example.com" zsh want replace "ssh"
by ".ssh/" (if I am in $HOME). I think that is because autocd change the
behaviour of _precommand.

How can I use a autocomplet like p_precommand but without the autocd
behavur ?

Thanks for your help!

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-08-31 19:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-30  7:35 Autocomplet with compdef _precommand Michel
2016-08-30 17:56 ` Bart Schaefer
2016-08-31  8:24   ` Michel
     [not found] ` <160830105636.ZM25657__30145.0480045334$1472579856$gmane$org@torch.brasslantern.com>
2016-08-31  2:35   ` Daniel Shahaf
2016-08-31  3:45     ` Bart Schaefer

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).