Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: alias -g
- X-seq: zsh-users 15245
- From: Kazuo Teramoto <kaz.rag@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: alias -g
- Date: Wed, 4 Aug 2010 04:22:56 -0300
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=eIiIaeokvRQY9b/yvX3VoApOm6ooz+6YzKMpDRj7w0g=; b=hBHzqkXew4rZ5up70804Fp9e9cftJAZ58Z2WP3wjbmFZtlRPH+H8hCLJOmwFvLdX0g ZpiNJbJeSgx7dc9IE+nw5fErokAl5Vd+A2YVk29l6uusSN9VTTENxOCrNI7W8oMehYOo BL9C3kLRWvTaF0SNQ5clYL0lqihNcbjoz90lM=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=r6dn/D19J3dHmW6UQ/aMko0WqHGjY6STujsHcyQq/ClKCoIutBvrR+zzdzuH6Ftw5E jp8rRq3b0JhP8rhMASb78nbgWEov+ag+bKvjC+EsXUBjm1Dr73Lwt1nDUUbFN1OFq02F 0zyAEPL5NqkdsM5XVltYd5VPBi9Xh76YjaAGQ=
- In-reply-to: <20100803191028.GA16019@xxxxxxxxxxxxx>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20100803191028.GA16019@xxxxxxxxxxxxx>
On Tue, Aug 3, 2010 at 4:10 PM, Eric Smith <es@xxxxxxxxxxxx> wrote:
> So when I go
> $ echo een vreemde taal T
[...]
> How do I drop the `echo` with alias -g or something similiar
> so all I need to do is go:
> $ een vreemde taal T
Uhh, I think this can be done for example creating a new autocd like
option, but you gonna need to wait for a better zsh user then me to
show you the code.
But, I think that what you like to do come at a highly price. Because
you loose the very definition of valid command. For example you can
forget that 'rm' is a valid command and type
$ rm important thing T
And get 'important' and 'thing' removed. Ok, rm is not a valid world
in a lot of languages, but what about sleep, wait? Or worse 'unlink'
it is a valid world and can remove your files like rm.
This too can be solved, for example, the new autocd-like function can
check if the last arg is T not if the first arg is a valid command,
but I still think that this can be a shoot in the foot some time.
And for me
$ T een vreemde
is more natural than your syntax, because I read it as "translate 'een
vreemde'". I'm prefer postfix for calculators but for this the prefix
notation is more logical for me.
Regards,
Kazuo
--
ÂDans la vie, rien n'est à craindre, tout est à comprendreÂ
Marie Sklodowska Curie.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author