DIRS(1)
β¨ dirs(1) β fish-shell's directory stack printer π
bestie, this is the dirs page from fish-shell, and it's genuinely so simple you'll be obsessed π«Ά
πΈ NAME πΈ
dirs β print the directory stack, no cap β¨
π¦ SYNOPSIS π¦
dirs [-c]
that's it. that's the whole vibe. π
π DESCRIPTION π
okay so dirs prints out your current directory stack (you know, the <#directory-stack>> β the same one that gets created by pushd and modified by popd. it's giving main character energy for your folder history π
here's the options situation, and yes there are literally only two:
-cβ clears the directory stack instead of printing it π like, wipe it. gone. iconic but destructive-ish, so know what you're doing.-hor--helpβ displays help about using this command π the classic "wait how does this work again" button. always there for you.
β heads up bestie: dirs does not accept any arguments. none. zero. don't try it, it's not that kind of command π
π₯ SEE ALSO π₯
- the
cdhcommand β which provides a more intuitive way to navigate to recently visited directories π honestly if you're just tryna get around,cdhis the moment.dirsis for when you wanna see the stack,cdhis for when you wanna go somewhere. iykyk π¦
π Copyright π
fish-shell developers πΈ
and that's the whole page, babe β dirs in all its tiny glory π
this was fish-shell 4.9, dated Sep 08, 2026, brought to you by the fish-shell developers. slay, periodt, go print some directories πβ¨π
π¦ where this page comes from
- arch rolling: fish 4.9.3-1 Β· GPL-2.0-only AND BSD-3-Clause AND ISC AND MIT AND PSF-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms