-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Disable history for the current session #2376
Comments
It's not possible easily (you can do some magic with |
Since this is the first issue I could find in google, functionality was implemented (if you follow the chain of linked issues): According to the docs, it's the following: set -x fish_histfile "" Note that case matters. If this doesn't work (and you know you're on an older version of Fish) try |
For the googlers: #102 (comment) The above comment is no longer correct. Use |
available since fish v3.0. not documented in the manpage yet. (https://github.com/fish-shell/fish-shell/blob/master/sphinx_doc_src/cmds/fish.rst) |
I realise that preceding a command with one or more space characters causes it to not be written to history, but I was wondering if there was a way to temporarily disable history for an entire session? From time to time, I need to repeatedly enter sensitive data (e.g customers' passwords) and it's cumbersome to constantly hit space before each command.
In
bash
, I'd simply justunset HISTFILE
-- how would I do this infish
, if it's at all possible?The text was updated successfully, but these errors were encountered: