b9AcE #NoEdits on Nostr: Oh, a neat trick? If you're on the command-line of a UNIX(/Linux) system and just ...
Oh, a neat trick?
If you're on the command-line of a UNIX(/Linux) system and just don't want it to remember anything you type, you just have to tell it not to.
Just as we just recently set "vi" mode on the command-line, we can do the opposite with its default of storing command-history.
Since we already set "option" flags for how the command-line should act with "-o", the opposite is of course "+o", so to unset the option to store entered commands in history is just the command "set +o history".
If you do that as your first command when you log in somewhere, the command-shell will not log into its memory any of the commands you enter after that (unless you enter "set -o history" to tell it the reverse, to start logging your commands).
If you're on the command-line of a UNIX(/Linux) system and just don't want it to remember anything you type, you just have to tell it not to.
Just as we just recently set "vi" mode on the command-line, we can do the opposite with its default of storing command-history.
Since we already set "option" flags for how the command-line should act with "-o", the opposite is of course "+o", so to unset the option to store entered commands in history is just the command "set +o history".
If you do that as your first command when you log in somewhere, the command-shell will not log into its memory any of the commands you enter after that (unless you enter "set -o history" to tell it the reverse, to start logging your commands).