Hardscrabble 🍫

By Max Jacobson

See also: the archives and an RSS feed

Quick tip: track command history in zsh

July 11, 2015

I switched from bash to zsh a few months ago and it’s been mostly sweet. I noticed that it wasn’t tracking my command history, so I did a little googling and got it working by adding these commands to my ~/.zshrc:

export HISTFILE=~/.zsh_history
export SAVEHIST=1000

I picked 1000 kind of randomly; a bigger number would probably be fine or nice.

Note: I don't have comments or analytics on this website, so it's hard to tell if people are reading or enjoying it. Please feel free to share any feedback or thoughts by shooting me an email or tagging me in a post on Mastodon @maxjacobson@mastodon.online.