Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Autocomplet with compdef _precommand
- X-seq: zsh-users 21817
- From: Michel <michel.barret@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Autocomplet with compdef _precommand
- Date: Tue, 30 Aug 2016 07:35:26 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=UCgElBM1wd5RvLxPqML11SgDrjJQ+BZ1Lsy8OX30zac=; b=lm5xKlZ6hHgGrQ2VXMSNnoDG0LNcRTJMi59Jbq3y6TTEYY5zlOiKkRmlKyH6ExuDZE 1Xf/+8TLN5mgpEOnjj3S1HKIfmkVV7UjG82tEjYnraDLLHg6Wa7PBCcQtofwu438bFQ7 v1CZQ/GKAJqpTjtpNl8qI8+pvruTmYglygh9P80NNrvDC0fzu1d4bib7xZWfXlUWiTXg l92TWjd0D/xOu3J8K9cdZyGB4g1FC4fLouYeDE9ABjyfdmiOQ9WRZxmXx2+QB93+t7Xh EZXY/nYhdGeMooMWbbdHTLOuq+gPJw3YLpNuKuzHiW7ECLtYIo90F6T3jWmJqLuReVfO Xz0g==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
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!
Messages sorted by:
Reverse Date,
Date,
Thread,
Author