5 ms·
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. I
by alpb 5y ago
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/ https://github.com/rupa/z/ It's basically CDPATH on stereoids and doesn't require preconfiguration like CDPATH.
- Hiopl 5y agoI largely despised the commandline until I discovered z. Then I realized there are ways to make the commandline actually usable and it became an incredible, useful and user-friendly tool for me.
- stjohnswarts 5y agoSimilar is https://lib.rs/crates/zoxide https://lib.rs/crates/zoxide if you're a fan of rust based solutions :) .
- alpb 5y agoI don't think zoxide keeps an eye on shell history or uses a shell hook to see which dirs you navigate to manually? It seems it collects history only through its own CLI?
- stjohnswarts 5y agoYou're wrong it watches what you do and where you go via the shell command history file.