EDIT: I figured out what went wrong! The root cause of it was my
.bash_history file; that contained the commands!
I've configured my fish shell to clear my fish history (because of personal preference). This is my
echo "" > ~/.node_repl_history echo "" >~/.pry_history fish_vi_key_bindings builtin history clear if test -e ~/.profile source ~/.profile end
My node and pry history files do get cleared, I have vi mode in the shell and my .profile gets sourced (because that apparently doesn't happen automatically).
Where it gets interesting is this: most of my fish history does in fact get cleared. but about 4 or 5 commands always persist in the history, and i'm not quite sure how. I found out that the file
.local/share/fish/fish_history contains these mystery commands, but even after I cleared the file and changed its permissions to read-only; or even deleted it(!) and ran fish again in a new session, the commands were revived and in my history once again.
I do not find them in any other fish history file, for any user, only my own.
Any help on this would be greatly appreciated. Thanks in advance,