From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15435 invoked from network); 5 Jan 2000 09:59:19 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 5 Jan 2000 09:59:19 -0000 Received: (qmail 19041 invoked by alias); 5 Jan 2000 09:58:57 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2828 Received: (qmail 19033 invoked from network); 5 Jan 2000 09:58:56 -0000 Date: Wed, 5 Jan 2000 16:09:32 +1100 From: Shao Zhang To: ZSH Mail List Subject: help with command completion Message-ID: <20000105160932.A10584@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: Mutt/1.0i Sender: Shao Zhang Hi, I am trying to learn programming command completion using zstyle. After a long read of /usr/share/zsh/functions, I still have to idea, not even how to start. I have the following two cases to do, can someone please give me a hand and tell me how to start?? lpr -P[TAB] complets to a list a printer name, read from /etc/printcap. rm -rf completes fine, but sudo rm -rf does not work. Thanks for the help. Shao. -- ____________________________________________________________________________ Shao Zhang - Running Debian 2.1 ___ _ _____ Department of Communications / __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: shao@cia.com.au |___/ _____________________________________________________________________________