does fish support aliases w/ magic? there might be a way to use aliases or
even completion for a fix

eg in zsh:

alias -g G='| egrep'
alias -g L="| $PAGER"

cat log L  # win
ls G .rb  # more win

if something similar's available in fish you might be able to alias HEAD^ to
HEAD\^ ...

DL

On Wed, Dec 2, 2009 at 5:35 PM, Bodaniel Jeanes <[email protected]> wrote:

> with out the context of knowing that 2 represents the io stream #2, the 2
> is completely random and looks more or less like a typo.
>
> ^ is analogous to < and > in that it is directing (key word here as those
> symbols can be used as directions) output/input somewhere.
>
>
> On Wed, Dec 2, 2009 at 4:33 PM, Pat Allan <[email protected]>wrote:
>
>> Standards and such aside - I don't actually see how ^ is any more
>> intuitive than 2>.
>>
>> --
>> Pat
>>
>> On 02/12/2009, at 5:30 PM, Bodaniel Jeanes wrote:
>>
>> > Well, yes, I understand the context and reason for 2>, doesn't mean
>> > it's the ideal from a usability standpoint. Fish is about being
>> > friendly, not standard. With that in mind ^ is nicer and better.
>> > These days, sysadmins are not the only ones using shells. I know
>> > designers who use it, and something like ^ is much more approachable
>> > and comprehendible without that extra context. That, imo, is what
>> > usable and intuitive software is about -- needing as little context
>> > as possible.
>> >
>> > Bo
>> >
>> > On Wed, Dec 2, 2009 at 3:06 PM, Nathan de Vries <[email protected]>
>> > wrote:
>> > On 02/12/2009, at 3:30 PM, Bodaniel Jeanes wrote:
>> > > 2> is arbitrary to begin with and I know that at least I have
>> > > trouble remembering the syntax at times.
>> >
>> > What do you mean by "arbitrary"? Everything is arbitrary if someone
>> > designed how it works, it just depends on how much context you've got
>> > with regards to the design decisions.
>> >
>> > In the case of C shell derivatives, the rules are pretty simple if you
>> > know what a file descriptor is:
>> >
>> > command 1> file        # redirect stdout to file
>> > command > file          # equivalent to above (fd 1 is default)
>> > command 2> file        # redirect stderr to file
>> > command 1>&2> file # redirect stdout to stderr to file
>> > command >&2> file   # equivalent to above
>> > command &> file        # shorthand equivalent to above
>> >
>> > Once you factor in other C shell features related to redirection, it
>> > all starts to look a lot less arbitrary than you suggest.
>> >
>> >
>> > Cheers,
>> >
>> > Nathan
>> >
>> > --
>> >
>> > You received this message because you are subscribed to the Google
>> > Groups "Ruby or Rails Oceania" group.
>> > To post to this group, send email to [email protected].
>> > To unsubscribe from this group, send email to
>> [email protected]<rails-oceania%[email protected]>
>> > .
>> > For more options, visit this group at
>> http://groups.google.com/group/rails-oceania?hl=en
>> > .
>> >
>> >
>> >
>> >
>> > --
>> >
>> > You received this message because you are subscribed to the Google
>> > Groups "Ruby or Rails Oceania" group.
>> > To post to this group, send email to [email protected].
>> > To unsubscribe from this group, send email to
>> [email protected]<rails-oceania%[email protected]>
>> > .
>> > For more options, visit this group at
>> http://groups.google.com/group/rails-oceania?hl=en
>> > .
>>
>> --
>>
>> You received this message because you are subscribed to the Google Groups
>> "Ruby or Rails Oceania" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<rails-oceania%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/rails-oceania?hl=en.
>>
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Ruby or Rails Oceania" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<rails-oceania%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/rails-oceania?hl=en.
>



-- 
cheers,
David Lee

--

You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.


Reply via email to