Shell Directory Navigation Tools

Discussions center on shell tools like zoxide, z, and autojump for fuzzy directory jumping based on usage history, along with bash/zsh features like pushd/popd, cd -, and CDPATH for efficient navigation.

➡️ Stable 0.6x DevOps & Infrastructure
1,825
Comments
19
Years Active
5
Top Authors
#1612
Topic ID

Activity Over Time

2008
4
2009
43
2010
49
2011
114
2012
65
2013
161
2014
112
2015
109
2016
56
2017
66
2018
104
2019
103
2020
140
2021
170
2022
139
2023
124
2024
110
2025
150
2026
6

Keywords

e.g bak.tgz LOTS OG CDPATH github.com i.e PWD YenTheFirst sourcefile.tar cd directory directories dir zsh command foo bash foo bar var

Sample Comments

printf_alex_ Dec 27, 2022 View on HN

+1 for zoxide. I can be in my home directory and cd into a directory 3 subdirectories away.

alpb Apr 22, 2021 View on HN

The most important tool I found for switching directories is called "z". You just partially type a previously visited directory's name and it takes you there. It also keeps track of your history to rank candidates for popularity. https://github.com/rupa/z/ It's basically CDPATH on stereoids and doesn't require preconfiguration like CDPATH.

mrbombastic Dec 25, 2023 View on HN

Not quite the same but you should check out autojump if you haven’t before: https://github.com/wting/autojump

rphln Mar 12, 2021 View on HN

It's a shell command that allows you to `cd` to places without having to type the whole path. Some implementations are https://github.com/wting/autojump and https://github.com/rupa/z.A very simplified example: if you call `j pro`, the command should take you to the folder that best matches the

frou_dh Dec 12, 2015 View on HN

You can get part way to this sort of experience in standard bash/sh by setting up a thoughtful 'CDPATH' and also making use of 'cd -'. In fact I have the latter aliased as z because it's like Undo.

anticodon Apr 22, 2021 View on HN

I use zoxide: https://github.com/ajeetdsouza/zoxideThere're only few directories I need to change to daily. So when I have to visit them, I need to type only `z first_two_characters_of_the_directory_name`

lenage Jul 19, 2014 View on HN

I also recommend autojump, it make cd directories easier

res0nat0r Jan 11, 2014 View on HN

Just use auto jumphttps://github.com/joelthelion/autojump

secoif Aug 7, 2012 View on HN

Aliases to cd into directories? You need to check out autojump style tools! Will change your life.e.g. https://github.com/rupa/zI very, very rarely type cd by hand anymore, mostly just use z and popd

joelthelion Dec 16, 2011 View on HN

May I suggest [autojump](https://github.com/joelthelion/autojump/wiki)?