You are not logged in.
In my experience, entering the same terminal command multiple times in succession will not result in that same command being added to the history multiple times. It will only be added once.
This doesn't seem to be the case for xfce4-terminal. Why is that? Was it a conscious choice to remove this for some reason?
It feels strange to press Up Arrow in the terminal, only to get the same command. I need to hold Up Arrow key for a while to get the older commands and would prefer the behavior in the first paragraph..
Last edited by julian (2020-09-16 12:06:31)
PGP: 4198 58E4 F9E8 AC05 FDEA A303 F083 6D52 5A2D 8356
Find my email where you get good encryption keys.
Offline
Not really an xfce4-terminal thing, but a bash thing. Add:
export HISTCONTROL=ignoredups
...to (usually) ~/.bashrc.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
That's the ticket, yes.
Marked as SOLVED
So the other OS has added this Bash line rather than it being removed by Xfce? Wondering if this can be a default for Xfce moving forward... or is this a distro thing?
PGP: 4198 58E4 F9E8 AC05 FDEA A303 F083 6D52 5A2D 8356
Find my email where you get good encryption keys.
Offline
I would say it should be a distro thing, or user choice.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
In my older Mint install, I have this in my .bashrc that accomplishes the same thing:
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
In this case, it was part of the install, not something I added. (I'm pretty sure.)
Offline
I would say it should be a distro thing(...)
Thanks ToZ, is anyone from Manjoro on these forums? I'm racking up improvements and would rather talk to a dev on these forums.
Thanks for your extra info, MrEen.
PGP: 4198 58E4 F9E8 AC05 FDEA A303 F083 6D52 5A2D 8356
Find my email where you get good encryption keys.
Offline
[ Generated in 0.010 seconds, 8 queries executed - Memory usage: 535.02 KiB (Peak: 535.87 KiB) ]