From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26617 invoked from network); 18 Apr 2000 18:26:06 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 18 Apr 2000 18:26:06 -0000 Received: (qmail 17917 invoked by alias); 18 Apr 2000 18:25:12 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 3024 Received: (qmail 17882 invoked from network); 18 Apr 2000 18:25:11 -0000 Date: Tue, 18 Apr 2000 14:24:32 -0400 From: Jason Price To: zsh-users@sunsite.auc.dk Subject: 2 questions Message-ID: <20000418142432.A8998@oobleck.gatech.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1us I'm trying to get a couple of things to work. Unfortunatly, I'm pretty sure both are simple... :(. I just can't figure it out. 1) I'm trying to do a simple string match in an if statement, akin to how one is done in a case statement. Something like...: case $var in patern1* ) ;; patern2* ) ;; esac if [[ "$var" in "patern1*" ]]; then fi I could do this in a case statement, but when you just have one if condition... 2) I'm playing with dev-22, and trying to get things to work nice. Currently, across all completion, should I hit , all matches are printed onto the command line. Aka: ->ls bin/ newcomplete.ps pc@ prompt file nsmail/ programs/ ->ls p ->ls pc programs prompt pc@ prompt programs: bind/ gtar/ netscape/ vim/ gnu/ ncftp/ ssh/ zsh/ ->ta ->ta tabs tail talk talkback tapes tapetool tar targs ->cd programs/g ->cd programs/gnu programs/gtar/ This is not exactly what I want. I'd rather have menu complete when it's non unique, defaulting to the first option, and allowing tab'ing or arrowing through the list. New completion setup is as follows: # The following lines were added by compinstall autoload -U compinit compinit [[ -z $fpath[(r)$_compdir] ]] && fpath=($fpath $_1ompdir) zstyle ':completion:*' completer _expand _complete _correct _approximate zstyle ':completion:*' completions 1 zstyle ':completion:*' glob 0 zstyle ':completion:*' ignore-parents parent pwd zstyle ':completion:*' matcher-list '' 'r:|[._-]=* r:|=*' 'm:{a-zA-Z}={A-Za-z}' zstyle ':completion:*' max-errors 1 zstyle ':completion:*' menu select=200 zstyle ':completion:*' squeeze-slashes true zstyle ':completion:*' substitute 0 zstyle ':completion:*' use-compctl false zstyle ':completion:*' verbose false # End of lines added by compinstall Any pointers would be greatly appreciated. If you need any more info, please let me know. Jason -- Faith is not a matter of questions. Jason Price Faith is a matter of answers. jprice@gatech.edu More to the point, one answer: Theta Xi, Beta Alpha, 449 "Yes, Lord."