Replies: 3 comments 3 replies
-
Separate history is not supported and has long been a pending issue (#25). Setting a different
Implementing that behavior will not be as easy as
|
Beta Was this translation helpful? Give feedback.
-
Hi, Thanks for the reply!
Yeah, i realised I could use such a hack, but it's not obvious to me how to merge the histories in a sane and automated fashion. Maybe an EXIT trap?
Yes. The only problem is, CTRL+r doesn't inherit the text from the line edit buffer, so you have to type your search term again. Maybe we could add a variant of the search command which copies the line edit buffer into the search buffer? I could even have a go at a pull request for that if you think it would be acceptable.
Perfect! Thank you! Is this documented? I don't see it when grepping the manual |
Beta Was this translation helpful? Give feedback.
-
One other comment. Often I don't need full history and just want to run the last command again. This could be achieved with the Would you object to adding |
Beta Was this translation helpful? Give feedback.
-
Hi,
As you've seen from the issues I've been raising, I've been experimenting with yash. I'm coming from fish, which I liked, but ultimately got annoyed with the syntax deviations from what I'm used to and the
set
system it uses.I had a few questions:
Is there a way to re-run the last command? I would use
<up>, <enter>
, but due to shared history, that isn't necessarily the last command. In bash and zsh,!!
would work, but this doesn't work on yash (or sh, ksh and fish).Is there any plan to add something like
beginning-search-backward
, but which matches the input anywhere in the history lines (without the string being anchored to the beginning of the line). For example, in fish if I typels
and press up repeatedly it could offer history lines likels /tmp
,rm rails
,man ls
on account of them all containing the substringls
.Is there a way to copy the currently matched history line (when using <ctrl+r> and <ctrl+s>) into an editable line for amending?
Many thanks for yash. I like it!
Beta Was this translation helpful? Give feedback.
All reactions