Sunday, May 5, 2024
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 3401  / 1 Year ago, fri, february 17, 2023, 2:25:32

I enter a command. It fails. I press arrow up, modify something and enter it again ... hold it right there.



It used to work like that. Now it's more like:
I enter a command. It fails. I press arrow up, get the last command which didn't fail, likely "ls" or something useless and I type the whole thing again back by hand.



What happened? It wasn't always like this. But it's quite some time since this behavior changed, I'll give you that. Some years ago, at least. How do I put some sanity back into my bash prompt?


More From » command-line

 Answers
1

For my it still works as you describe it should, but maybe you need to look for something in the ~/.bashrc file that prevents some commands from showing up in the history, maybe something as described in here:
http://blog.dhampir.no/content/avoiding-invalid-commands-in-bash-history


[#33834] Saturday, February 18, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rontablis

Total Points: 293
Total Questions: 123
Total Answers: 104

Location: Austria
Member since Mon, Mar 1, 2021
3 Years ago
;