this post was submitted on 22 Aug 2024
798 points (98.9% liked)
Technology
60076 readers
3537 users here now
This is a most excellent place for technology news and articles.
Our Rules
- Follow the lemmy.world rules.
- Only tech related content.
- Be excellent to each another!
- Mod approved content bots can post up to 10 articles per day.
- Threads asking for personal tech support may be deleted.
- Politics threads may be removed.
- No memes allowed as posts, OK to post as comments.
- Only approved bots from the list below, to ask if your bot can be added please contact us.
- Check for duplicates before posting, duplicates may be removed
Approved Bots
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Linux is just as bad though
.zsh_history
records every command you run!(/s, obviously...)
Actually no... well for zsh I don't know but for bash at least if you start the command with a space it won't be added to history. So not every command, you still get to (conveniently IMHO) decide that too!
Right, you can control that behavior in bash with the
HISTCONTROL
variable, and in zsh withsetopt HIST_IGNORE_SPACE
:)That's so cool, how have I never discovered that after so many years of using Linux?...
Iirc you can also just disable it with
unset HISTFILE
. This will reset when you open a new session unless you put it in the.zshrc
or something.