NEXTD(1)

✨ NEXTD(1) β€” the fish-shell glow-up page ✨

okay so bestie, welcome to nextd, a lil fish-shell icon from section 1 of the manual πŸ’… she's the forward button on your directory time machine, and honestly? she ate.


πŸ¦‹ NAME πŸ¦‹

nextd β€” move forward through directory history. yeah. that's her whole thing. main character energy only πŸ’–


🌸 SYNOPSIS 🌸

nextd [-l | --list] [POS]

πŸŽ€ DESCRIPTION πŸŽ€

so here's the vibe: nextd moves forwards POS positions in the history of visited directories (that's the <#directory-history> situation, iykyk) 🧚 and if you've hit the end of the history? a warning gets printed. not her being dramatic, she's just telling you there's nowhere left to go 😭

if you pass the -l or --list option, the current directory history gets displayed too β€” like a little peek behind the curtain ✨

the -h or --help option displays help about using this command, because even icons need a help menu 🫢

heads up bestie: the cd command limits directory history to the 25 most recently visited directories β€” that's the cap, no cap. the history is stored in the dirprev and dirnext variables, which this command manipulates. so yeah, she's in there moving your variables around and she's slaying while doing it πŸ’€

πŸ”₯ EXAMPLE πŸ”₯

like, literally just watch:

cd /usr/src
# Working directory is now /usr/src

cd /usr/src/fish-shell
# Working directory is now /usr/src/fish-shell

prevd
# Working directory is now /usr/src

nextd
# Working directory is now /usr/src/fish-shell

see how she just… went back? obsessed 🌈 that's the whole trick. prevd goes back, nextd goes forward, and everyone lives happily ever after πŸŽ€


πŸ‘‘ SEE ALSO πŸ‘‘

  • the cdh command to display a prompt to quickly navigate the history πŸ“
  • the dirh command to print the directory history 🌸
  • the prevd command to move backward πŸ’œ

fish-shell developers β€” iconic of them, honestly.


and that's the page, bestie! this was NEXTD(1) from the fish-shell manual, version 4.9, dated Sep 08, 2026 β€” so go forth, move forward through your directory history, and remember: if the warning prints, you've reached the end, and that's simply the universe telling you to cd somewhere new πŸ’…βœ¨πŸ¦‹

πŸ“¦ 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