This plugin for zsh adds just one shortcut, but unfolds the magic of both Zoxide and ranger 🧙
Without arguments, r
just opens ranger. If you supply an argument that is a directory, ranger is opened in that directory. But if you supply anything else as an argument, zoxide
is called with the argument and ranger
is opened there. This is the efficiency you always wanted.
Install the zsh plugin using your favorite plugin manager, for example zgen: zgen load fdw/ranger_zoxide
.
Peviously, this repository also contained a plugin for ranger to use Zoxide. This has now been merged with ranger+zoxide, so check that out, too.