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.
  • -h or --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 cdh command β€” which provides a more intuitive way to navigate to recently visited directories πŸ‘‘ honestly if you're just tryna get around, cdh is the moment. dirs is for when you wanna see the stack, cdh is for when you wanna go somewhere. iykyk πŸ¦‹

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