snippetbashTip
zoxide — Keep track of the most frequently used directories. Uses a ranking algorithm to navigate to the best
Viewed 0 times
thekeepcommandmostclizoxidefrequentlytrack
Problem
How to use the
zoxide command: Keep track of the most frequently used directories. Uses a ranking algorithm to navigate to the best match. More information: <https://manned.org/zoxide>.Solution
zoxide — Keep track of the most frequently used directories. Uses a ranking algorithm to navigate to the best match. More information: <https://manned.org/zoxide>.Go to the highest-ranked directory that contains
string in the name:zoxide query stringGo to the highest-ranked directory that contains
string1 and then string2:zoxide query string1 string2Start an interactive directory search (requires
fzf):zoxide query {{[-i|--interactive]}}Add a directory or increment its rank:
zoxide add {{path/to/directory}}Remove a directory from
zoxide's database:zoxide remove {{path/to/directory}}Generate shell configuration for command aliases (
z, zi):zoxide init {{bash|elvish|fish|nushell|posix|powershell|tcsh|xonsh|zsh}}Code Snippets
Go to the highest-ranked directory that contains `string` in the name
zoxide query stringGo to the highest-ranked directory that contains `string1` and then `string2`
zoxide query string1 string2Start an interactive directory search (requires `fzf`)
zoxide query {{[-i|--interactive]}}Add a directory or increment its rank
zoxide add {{path/to/directory}}Remove a directory from `zoxide`'s database
zoxide remove {{path/to/directory}}Context
tldr-pages: common/zoxide
Revisions (0)
No revisions yet.