this post was submitted on 29 Mar 2025
21 points (100.0% liked)
Linux
6856 readers
166 users here now
A community for everything relating to the GNU/Linux operating system
Also check out:
Original icon base courtesy of [email protected] and The GIMP
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
Thx! I've got zsh and ohmyzsh installed but my workflow hasn't changed really. Also, I really want to store and see a command history.
Back when I used traditional distros I hated that I had no history of user installed packages/apps
Now I could just write a file and append all installs. With atomic distros, it's clearer nowadays, but I can also save packages for later
I am really confused. Every shell over used has had a command history. zsh takes it to the next level, with optional history syncing between running terminals. Histories are always persistent, unless you unset HISTFILE. I've got my HISTSIZE set to an absurd 10,000 commands, with uniqueness enabled. Ctrl-R lets you autocomplete type-ahead search through history. Tools like fzf can make it marginally better, but ^r has nearly always been enough. You have !? history searching; !nnnn for referring to commands by number, the
history
command to actually print out all of you history which you can then grep.Most of this has been available in shells at lest since the mid-90's, when I really started using Unix in earnest.
So I'm really confused about why you think shells haven't had persistent histories. What's new or different about this thing to which you refer?
man bash
orman zshall
and/HIST
, and that'll get you started.