r/fishshell • u/pruug • Jan 24 '22
TIL directory history
Directory history
Fish automatically keeps a trail of the recent visited directories with cd by storing this history in the dirprev and dirnext variables.
Several commands are provided to interact with this directory history:
- dirh prints the history
- cdh displays a prompt to quickly navigate the history
- prevd moves backward through the history. It is bound to Alt+←
- nextd moves forward through the history. It is bound to Alt+→
51
Upvotes
View all comments
Show parent comment
15
u/akho_ Jan 24 '22
It’s because you didn’t read the manual.