-
Notifications
You must be signed in to change notification settings - Fork 527
History and keybindings in Coming from Bash #1502
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
You can reference this link https://www.nushell.sh/blog/2024-05-15-bashisms.html and I think there may be one missing. |
Thanks - Definitely missed one. I forgot about the blog post and was just going from what I could grok from the source ;-) Are you saying that I should put a link near the table in the Book to the Blog post? Or just that I could use it for my own reference? |
I'm fine with putting the blog information in the docs, no need to link to it. |
Sounds good - Should be ready to merge if the update for |
Thanks - Copy/paste error. Fixed. |
Now that I look at these again, they don't repeat anything. They just get the info and put it on the command line. Bash repeats. Nushell just gets but doesn't execute. |
I think "repeat" works since it repeats the entering of the text on the command line, but what about "substitute" in place of "repeat"? I can also add a brief explanation of the difference in behavior. |
I think the key point that we need to make is that it does not work the same as bash. In bash you type !! and it runs the last command. I nushell you do !! and it puts the last command on the commandline but does not execute it. I'm not sure substitute or repeat convey what it does. Get is closer but it's not quite that either. Just pick one and put some blurb that describes the functionality, and I'll land it. Thanks for helping! |
"Insert" - I think that's the word we're looking for. Updated. |
Implemented suggestion in #1072:
!!
,!$
,!<n>
, and!<-n>
history substitutions