Add environment variable to define commands that should NOT be saved in the history
Created by: BafDyce
For example, bash (and probably other shells too) ignores commands starting with a space when HISTCONTROL
is set to ignorespace
or ignoreboth
(see www.delorie.com/gnu/docs/bash/bashref_62.html). This would be a useful feature and is part of my current daily workflow.
For ion, we could add a variable such as HISTORY_IGNORE
which contains rules to influence which commands are saved to the history.
Blocking/related: #502 (closed)
Misc: I'd be happy to implement this feature, however I'd like to have it discussed it first:
- Do you/the community think this is a useful addition?
- Is
HISTORY_IGNORE
a good name? - Should the "ignore-character" always be a space? Any whitespace? Any user-defined character?
- What's a sane way to combine this with the issue mentioned in #502 (closed)?
Note: I've created two separate issues, feel free to merge them if you think that would be better.
If the above does not fit the nature of the issue feel free to modify it.