Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 903861

Summary: app-shells/bash: add some $HISTCONTROL setting for interactive shells by default
Product: Gentoo Linux Reporter: Christian Bricart <christian>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: UNCONFIRMED ---    
Severity: enhancement CC: gentoo
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Christian Bricart 2023-04-05 08:59:47 UTC
suggestion:
It would be really nice to have some HISTCONTROL setting system-wide by default.

i.e. I really miss at least a HISTCONTROL=ignorespace to be set (system-wide).

rationale: 
at least I made it a habbit to always prefix commands like »reboot«, »poweroff«, … (ymmv) with a space, to have them not end up in the history and unintentionally call them again by sticky fingers

of course, everyone is able to set that in one's own ~/.bashrc or even drop some file in /etc/bash/bashrc.d/ by their system provisioning solution, but that might turn out to be very cumbersome to most users.

however, I think this would be a really nice addition to system default's /etc/bash/bashrc (already being delivered by app-shells/bash from its $FILESDIR) wrt default user experience.


Reproducible: Always
Comment 1 Yuri 2023-09-01 19:48:29 UTC
Having at least the 'ignorespace' set would be great since space is customary used for prefixing sensitive commands (e.g. passwords as a part of a command).