From: Alexius Ludeman <aludeman@ics.uci.edu>
To: zsh-users@math.gatech.edu
Subject: Re: misc compctl
Date: Wed, 28 Jan 1998 18:33:17 -0800 [thread overview]
Message-ID: <9801281833.aa09731@paris.ics.uci.edu> (raw)
Since we're all mentioning our little tricks. Here is what i use:
autoload createcomphosts
compctl -K createcomphosts telnet rsh rup ping traceroute ssh xrsh
function createcomphosts()
{
if [ $comphost"X" = "X" ]; then
comphost=(`ypcat netgroup | cut -d, -f 1 | cut -c2-` other hosts
not in netgroup map )
reply=( $comphost )
else
reply=( $comphost )
fi
}
Since our netgroup map is quite large (3569 hosts). This is dynamic
enough and is only created on first completion and doesn't bloat all
the shells.
Although I do get a strange error sometimes which I haven't entirely
looked into, but I'll get an error about "zsh: condition expected:
somerandomhostname".
Another strange behavior is when I use the push-line feature and bind
ctrl-p to it. Now when I first type a line and hit ctrl-p it'll push
the command I was working on away as designed. But say I start
scrolling through the history then ctrl-p become previous history.
thank you drive through,
Lex
next reply other threads:[~1998-01-29 2:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-01-29 2:33 Alexius Ludeman [this message]
-- strict thread matches above, loose matches on Subject: below --
1998-01-20 12:00 tar compctl Niall Smart
1998-01-20 17:51 ` CVS compctl Mirar
1998-01-23 21:22 ` man compctl Thomas Köhler
1998-01-24 11:37 ` Mirar
1998-01-24 11:57 ` misc compctl Mirar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9801281833.aa09731@paris.ics.uci.edu \
--to=aludeman@ics.uci.edu \
--cc=zsh-users@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).