FG
💻 Software

ZSH - output whole history?

Fresh5 days ago
Mar 15, 2026126697 views
Confidence Score1%
1%

Problem

I recently switched from bash to zsh. In bash, one way (besides recursive search) that I used to find previously-run commands was , where is the bit of command I remember. In zsh, this isn't working. returns only a few items, even though my file contains many entries, which I have configured it to do. How can I output my whole history, suitable for searching with ?

Error Output

history | grep whatever

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: ZSH - output whole history?

Low Risk

History accepts a range in zsh entries as arguments, so to get them all run . To get the zsh help (at least with mind) type over the history command and this will bring up the help for built-ins.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment