Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: ^test^main line editting command



On Sep 14, 10:27am, zzapper wrote:
}
} I hope I know most of the bang tricks !! etc.
} But I was just hoping ,zsh being so twisted ,that there might just be
} some clever tricks to the
} ^str1^str2 mechanism

There's really only one, but it's a pretty comprehensive trick.

When you write
    ^str1^st2
zsh converts it internally to
    !!:s^str1^str2
which means that you can add a third carat and go on with your command
line, including appending a colon and then more history modifiers.
E.g.
    ^str1^str2^:u:p

(I'm not sure what you were hinting at with the "some kind of memory"
question.)



Messages sorted by: Reverse Date, Date, Thread, Author