-
-
Notifications
You must be signed in to change notification settings - Fork 564
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Excluding commands from being added to history #515
Comments
prefix command with a space |
Prefixing a command with a space is only good when I want to exclude a command in certain situations. Not, when I want to exclude a command each time I invoke it. |
I think this is a decent idea. For now it could be based just on the program run, but in future we could support full regex syntax for the arguments too. filter = ["cd", "mpv", "mplayer"] |
Thanks for considering to implement this. Is |
Just an idea for now |
Adds a new `history_filter` setting through which users can specify a list of regular expressions that match commands that should not be recorded in the history.
Adds a new `history_filter` setting through which users can specify a list of regular expressions that match commands that should not be recorded in the history.
Adds a new `history_filter` setting through which users can specify a list of regular expressions that match commands that should not be recorded in the history.
Adds a new `history_filter` setting through which users can specify a list of regular expressions that match commands that should not be recorded in the history.
What is the best way to exclude commands to be added to history?
Using fish I modified
_atuin_preexec
like followsThis seems to work.
Question: Is this a good way to do this, or could it be done in a better way?
The text was updated successfully, but these errors were encountered: