zoxide
cdhist
Our great sponsors
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
zoxide
- A smarter CD command. Supports all major shells
-
Z – Jump Around
I use this Rust clone which works great, no complaints: https://github.com/ajeetdsouza/zoxide
Although, I don't know what the difference is, other than the language of choice.
-
Cdpath: Easily Navigate Directories in the Terminal
I use https://github.com/ajeetdsouza/zoxide, which is inspired by z and autojump.
-
Ask HN: Share a shell script you like
Zoxide is basically the 'Rust Rewrite' version of the 'Z' tool and is actively maintained, I haven't had any issues with it: https://github.com/ajeetdsouza/zoxide
-
env::set_current_dir() -- is either not functioning as intended or I'm just messing something up
Indeed, utilities like zoxide which operate primarily as a cd replacement don't attempt to change directories via rust code - they create a shell alias that ultimately invokes a shell builtin to do it.
-
Everything I Installed on My New Mac
I also still use zoxide for navigating directories. It's a smarter cd command that learns your habits and makes navigating directories a breeze.
-
Top Productivity CLI Tools I Use on Linux
4. Zoxide
-
How to achieve the function of the Mac app Hookmark in the terminal?
Not sure what you mean by bookmarks, but I use zoxide to quickly jump to frequently used folders.
-
Fish-like dirhistory (prevd/nextd) for Bash
I mostly use zoxide these days to do navigation. In your case instead of doing cd -3 I would simply do z baz to get to the bottom of the stack, or Alt+Left three times (with the above recipe).
-
6 Repositories recommended by GitHub to Boost Your Programming Productivity
🔗 Link
cdhist
-
Have you made a bash script that improved your life in some way? My examples
Consider also cdhist.
-
FZF: make CTRL-T work with directories outside the current one
Again, not answering your question directly but you could consider using cdhist which allows FZF to search over all your previously visited directories.
-
Jmp: you'll never want to cd into a directory again
Another option is cdhist which can work with fzf to fuzzy search over your directory history, rather than immediate directory paths. That is more useful to me.
-
What is a program that you use that's uncommon but essential for you?
I use ranger frequently also, e.g. for navigating around an unfamiliar directory tree to see what dirs and files are there. But cdist automatically keeps track of all directories I cd to and allows me to quickly jump back to any of them. Generally I work in various projects/dirs etc, and then just cd -- to switch between them (or I sometimes use fzf nowadays which can fuzzy search that cdhist history).
My own cdhist which I have used all day every day for the last 20 years and have no idea how the rest of you survive without it ;) It's also in the AUR.
-
Use fzf to fuzzy search and select from previously visited directories on Linux
command only provides fuzzy matching of directories under the current directory but many of us really want to fuzzy match across all the directories we have previously visited. The cdhist utility intercepts your shellcd command to maintain a history of previous directories for easy later selection. cdhist is also trivial to integrate with fzf as described here.
@wixig, can you please raise an issue on github for cdhist support. Not really appropriate here on reddit.
What are some alternatives?
autojump - A cd command that learns - easily navigate directories from the command line
z - z - jump around
zsh-z - Jump quickly to directories that you have visited "frecently." A native Zsh port of z.sh with added features.
fasd - Command-line productivity booster, offers quick access to files and directories, inspired by autojump, z and v.
z.lua - :zap: A new cd command that helps you navigate faster by learning your habits.
fzf - :cherry_blossom: A command-line fuzzy finder
broot - A new way to see and navigate directory trees : https://dystroy.org/broot
starship - ☄🌌️ The minimal, blazing-fast, and infinitely customizable prompt for any shell!
autojump-rs - A fast drop-in replacement of autojump written in Rust
nushell - A new type of shell
exa - A modern replacement for ‘ls’.
ohmyzsh - 🙃 A delightful community-driven (with 2,200+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, python, etc), 140+ themes to spice up your morning, and an auto-update tool so that makes it easy to keep up with the latest updates from the community.