Hasty Briefsbeta

Bilingual

Curate Your Shell History

a year ago
  • #productivity
  • #shell-history
  • #zsh
  • Simon Tatham advocates disabling shell history files to avoid clutter and false starts.
  • He suggests saving only useful commands manually in scripts or notes instead of relying on history.
  • A contrasting approach is to maximize shell history but actively prune it to remove errors and dead ends.
  • A custom zsh function 'smite' is introduced to selectively delete unwanted commands from history using fzf.
  • The function allows for interactive browsing and deletion of history entries, improving history quality.