-
Notifications
You must be signed in to change notification settings - Fork 26
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
feature: add executed task to shell history #114
Comments
I noted this as a thing that was frustrating me too, would happily take a PR! |
I had a look at this, and couldn't get it to work.
though if run through the Go Script, the effect of this is confined to the subprocess created by exec.Command, not the parent shell session. |
I can see the problem here, might need some more thinking! I've had some inspiration on this which might solve the problem by changing how it works. We could have the Is this too annoying of a change? I've been using https://github.com/atuinsh/atuin for a while and it also pre-populates your cli with a command rather than running it for you. |
That would be great for me! |
I looked further and the way this works in So its able to do things like refresh the history or prepopulate the commandline as there are hooks in dotfiles. The atuin command on its own isn't able to do any of these things on its own :( So back at square one with @jdmcgrath , you observation that this can't be done from the |
navi does the same, user needs to Also on a side note, I am on nixos and use home-manager to configure bash/fish etc. |
I'm enjoying using the interactive mode. One thing I've noticed, is that I'll often run
xc
, selectdocker-build
and it will start.Then I'll make some changes, and want to run it again, so I'll press the up arrow on the keyboard, or I'll use
Ctrl+R
to search, butdocker-build
is not in the history.I think it would be a case of adding a line to either
.zsh_history
if the shell is zsh, or.bash_history
is the shell is bash.I can put a PR for that together if you like.
The text was updated successfully, but these errors were encountered: