* compdef error
@ 2006-06-23 15:21 Chris Johnson
2006-06-23 15:25 ` Chris Johnson
0 siblings, 1 reply; 2+ messages in thread
From: Chris Johnson @ 2006-06-23 15:21 UTC (permalink / raw)
To: zsh-users
Hi. I've got two compdef calls in my .zshrc that make two commands
complete like scp. These lines are:
compdef iscp=scp
compdef \\scp=scp
The first makes a script I wrote complete like scp. The second makes
the system scp complete like it should when I call it via \scp. (This
didn't happen automatically at last check. \scp didn't use scp's
completion.)
This works fine. However, I've recently noticed that when I re-source
my .zshrc, I get the following messages:
[cjohnson@namib] ~: source .zshell/.zshrc
compdef: unknown command or service: scp
compdef: unknown command or service: scp
[cjohnson@namib] ~: zsh --version
zsh 4.2.5 (i686-pc-linux-gnu)
Any ideas?
--
Chris Johnson
cjohnson@cs.utk.edu
http://www.cs.utk.edu/~cjohnson
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: compdef error
2006-06-23 15:21 compdef error Chris Johnson
@ 2006-06-23 15:25 ` Chris Johnson
0 siblings, 0 replies; 2+ messages in thread
From: Chris Johnson @ 2006-06-23 15:25 UTC (permalink / raw)
To: zsh-users
Chris Johnson sent me the following 0.8K:
> Hi. I've got two compdef calls in my .zshrc that make two commands
> complete like scp. These lines are:
>
> compdef iscp=scp
> compdef \\scp=scp
>
> The first makes a script I wrote complete like scp. The second makes
> the system scp complete like it should when I call it via \scp. (This
> didn't happen automatically at last check. \scp didn't use scp's
> completion.)
This parenthesized comment is not true. I don't know if it ever was
true, but \scp completes like scp out of the box now and I don't need
the second compdef statement. Removing it also makes my compdef error
go away.
Thanks for listening!
--
Chris Johnson
cjohnson@cs.utk.edu
http://www.cs.utk.edu/~cjohnson
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-06-23 15:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-23 15:21 compdef error Chris Johnson
2006-06-23 15:25 ` Chris Johnson
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).