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
Subprocess commands missing from history #1847
Comments
Interesting, they show up for me using either bash or zsh. What's your environment like? Note that the whole command is what will be in history, |
Yeah, I'm on bash I do get the commands in the history, i.e. I can use the up arrow to run the command, but when I hit ctrl-r, they don't appear in that list. |
don't show up for me there also is a problem if I use c-x c-e. I do have using c-p I get the correct history in the built in list. |
Same here, e.g.,
To be honest, I haven't seen the |
I definitely second this. Sometimes I am unwilling to search history through atuin because I know that some commands could be missed from history. I'd rather prefer to have my history intact even if that could lead to some privacy issues. |
@mjf @frasty Those are all the limitations of
No. Atuin maintains a separate command history, which is independent of the command history of Bash. When Atuin shows the search menu, it doesn't access the command history of Bash.
Have you noticed the Bash section in README? Currently, ble.sh is the only option if you want to record all the commands by Atuin. I think those descriptions are easy to miss, so I submitted a PR #1937. |
In addition, there are no such errors with zsh/fish/xonsh/nushell. This is purely because Bash provides absolutely no way for us to hook into the shell lifecycle. Bash preexec mostly just hacks the prompt. It works well enough, but there are some issues - as you've noted. @akinomyoga's ble.sh is a reimplementation of the line editor in Bash, so has far more control and works better. We cannot install this by default however, as it does much more than just add some shell hooks You'll probably find that a bunch of other shell plugins don't function quite so well with Bash |
Yeah, I understand what you mean. But, see later on...
Well, that's expected (and sorry for the poorly expressed sentence). To clarify it more further... I would like Sidenote: My idea is to feed history entries into
Great. But, to be honest, I would like to get rid of the additional Bash stuff in my setup. The simple |
Hi,
First, thanks for a great tool! It's been a joy to use so far.
I routinely do eg.
(cd x; mycommand)
when I only want to run one or two commands inside a directory and I've noticed that these don't end up in the history. Is there any way I can get them to do that?The text was updated successfully, but these errors were encountered: