From: zzapper <david@rayninfo.co.uk>
To: zsh-users@zsh.org
Subject: Re: Twitter Daily ZSH Tip
Date: Sun, 20 Oct 2013 18:06:11 +0000 (UTC) [thread overview]
Message-ID: <XnsA25FC258439C5davidrayninfocouk@80.91.229.13> (raw)
In-Reply-To: <20131020173646.GA11398@mugenguild.com>
Valodim Skywalker <valodim@mugenguild.com> 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
next prev parent reply other threads:[~2013-10-20 18:06 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-19 10:09 zzapper
2013-10-19 14:53 ` Jérémie Roquet
2013-10-19 16:42 ` René Wilhelm
2013-10-19 18:00 ` Nick Cross
2013-10-19 19:11 ` Mark van Dijk
2013-10-20 17:36 ` Valodim Skywalker
2013-10-20 18:06 ` zzapper [this message]
2013-10-28 17:34 Eric De Mund
2013-10-28 17:55 ` Peter Stephenson
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=XnsA25FC258439C5davidrayninfocouk@80.91.229.13 \
--to=david@rayninfo.co.uk \
--cc=zsh-users@zsh.org \
/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).