From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21165 invoked by alias); 20 Oct 2013 18:06:38 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 18040 Received: (qmail 12556 invoked from network); 20 Oct 2013 18:06:34 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_NUMERIC_HELO,SPF_HELO_PASS autolearn=no version=3.3.2 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@zsh.org From: zzapper Subject: Re: Twitter Daily ZSH Tip Date: Sun, 20 Oct 2013 18:06:11 +0000 (UTC) Organization: Your Company Message-ID: References: <20131020173646.GA11398@mugenguild.com> X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 2.29.217.78 User-Agent: Xnews/2009.05.01 Valodim Skywalker wrote in news:20131020173646.GA11398@mugenguild.com: > zzapper(david@rayninfo.co.uk)@Sat, Oct 19, 2013 at 10:09:35AM +0000: >> vi *(.om[$1]) # vim newest file > > The [$1] should probably be [1] ;) Valodim, Whoops yes I carelessly borrowed that from my .zshrc where I have a function which allows me specify more options function vew() { # name : vew # description : vi newest file # or nth newest file if a numeric parameter # or newest file with $1 string in name if [ $# -gt 0 ] then if [[ "$1" == [0-9] ]] then gvim.exe *(.om[$1]) & else gvim.exe *$1*(.om[1]) & fi else gvim.exe *~vssver.scc(.om[1]) & fi } zzapper