hstr icon indicating copy to clipboard operation
hstr copied to clipboard

`export HISTCONTROL=ignorespace` includes lines people may want private

Open auwsom opened this issue 2 years ago • 2 comments

Hello,

First off. Thank you!! I love this utility!

The only thing I would change is this default setting to include lines people may want private. Adding a space in front of a command is the standard way to exclude it from history.

This comes in handy when using the shell as scratch paper for lines of code like private keys and such. Or even typing out long random passwords from Yubikey second slot to copy and paste. Lots of used for the space in front of command. Even for keeping history clean, which I should use more of ;).

auwsom avatar Feb 04 '22 23:02 auwsom

@auwsom thank you for feature suggestion! Let me think about this feature (perhaps such lines should not be listed by default / it cloud be included w/ a settings and/or different shortcut; also I could hash such rows as they would not be stored in shell history, but a HSTR configuration file).

Anyway thank you for meaningful feature suggestion and your interest in HSTR!

dvorka avatar Feb 05 '22 12:02 dvorka

sed -i 's/export HISTCONTROL/#export HISTCONTROL/' ~/.bashrc

auwsom avatar Mar 30 '22 01:03 auwsom