2021-09-17 19:59:46 +00:00
|
|
|
<!-- markdownlint-configure-file {
|
|
|
|
"MD013": {
|
|
|
|
"code_blocks": false,
|
|
|
|
"tables": false
|
|
|
|
},
|
2021-10-28 06:53:14 +00:00
|
|
|
"MD033": false,
|
|
|
|
"MD041": false
|
2021-09-17 19:59:46 +00:00
|
|
|
} -->
|
2021-07-21 19:07:20 +00:00
|
|
|
|
2021-10-28 06:53:14 +00:00
|
|
|
<div align="center">
|
|
|
|
|
2023-10-10 08:51:12 +00:00
|
|
|
<sup>Special thanks to:</sup>
|
|
|
|
|
|
|
|
<a href="https://www.warp.dev/?utm_source=github&utm_medium=referral&utm_campaign=zoxide_20231001">
|
|
|
|
<div>
|
|
|
|
<img src="contrib/warp.png" width="230" alt="Warp" />
|
|
|
|
</div>
|
2023-11-18 23:55:23 +00:00
|
|
|
<b>
|
|
|
|
Warp is a modern, Rust-based terminal with AI built in so you and your team
|
|
|
|
can build great software, faster.
|
|
|
|
</b>
|
2023-10-10 08:51:12 +00:00
|
|
|
<div>
|
|
|
|
<sup>Visit <u>warp.dev</u> to learn more.</sup>
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<hr />
|
|
|
|
|
2021-10-28 06:38:57 +00:00
|
|
|
# zoxide
|
2020-03-07 21:04:47 +00:00
|
|
|
|
2021-09-06 20:54:11 +00:00
|
|
|
[![crates.io][crates.io-badge]][crates.io]
|
|
|
|
[![Downloads][downloads-badge]][releases]
|
|
|
|
[![Built with Nix][builtwithnix-badge]][builtwithnix]
|
2021-05-01 21:56:12 +00:00
|
|
|
|
2021-10-28 06:53:14 +00:00
|
|
|
zoxide is a **smarter cd command**, inspired by z and autojump.
|
2020-03-07 21:04:47 +00:00
|
|
|
|
2021-10-28 06:53:14 +00:00
|
|
|
It remembers which directories you use most frequently, so you can "jump" to
|
|
|
|
them in just a few keystrokes.<br />
|
|
|
|
zoxide works on all major shells.
|
|
|
|
|
|
|
|
[Getting started](#getting-started) •
|
|
|
|
[Installation](#installation) •
|
|
|
|
[Configuration](#configuration) •
|
|
|
|
[Integrations](#third-party-integrations)
|
|
|
|
|
|
|
|
</div>
|
2020-05-29 23:38:30 +00:00
|
|
|
|
2021-10-28 06:53:14 +00:00
|
|
|
## Getting started
|
|
|
|
|
|
|
|
![Tutorial][tutorial]
|
2020-03-07 21:04:47 +00:00
|
|
|
|
|
|
|
```sh
|
2021-12-05 08:58:31 +00:00
|
|
|
z foo # cd into highest ranked directory matching foo
|
|
|
|
z foo bar # cd into highest ranked directory matching foo and bar
|
2022-01-20 21:44:28 +00:00
|
|
|
z foo / # cd into a subdirectory starting with foo
|
2020-03-07 21:04:47 +00:00
|
|
|
|
2021-12-05 08:58:31 +00:00
|
|
|
z ~/foo # z also works like a regular cd command
|
|
|
|
z foo/ # cd into relative path
|
|
|
|
z .. # cd one level up
|
|
|
|
z - # cd into previous directory
|
2020-03-07 21:04:47 +00:00
|
|
|
|
2021-12-05 08:58:31 +00:00
|
|
|
zi foo # cd with interactive selection (using fzf)
|
|
|
|
|
2022-02-25 04:19:45 +00:00
|
|
|
z foo<SPACE><TAB> # show interactive completions (zoxide v0.8.0+, bash 4.4+/fish/zsh only)
|
2020-03-07 21:04:47 +00:00
|
|
|
```
|
|
|
|
|
2021-04-11 20:26:48 +00:00
|
|
|
Read more about the matching algorithm [here][algorithm-matching].
|
|
|
|
|
2021-10-28 06:53:14 +00:00
|
|
|
## Installation
|
2020-03-07 21:04:47 +00:00
|
|
|
|
2023-01-26 17:05:43 +00:00
|
|
|
zoxide can be installed in 4 easy steps:
|
|
|
|
|
|
|
|
1. **Install binary**
|
|
|
|
|
|
|
|
zoxide runs on most major platforms. If your platform isn't listed below,
|
|
|
|
please [open an issue][issues].
|
|
|
|
|
|
|
|
<details>
|
2024-02-20 09:36:59 +00:00
|
|
|
<summary>Linux / WSL</summary>
|
2023-01-26 17:05:43 +00:00
|
|
|
|
|
|
|
> The recommended way to install zoxide is via the install script:
|
|
|
|
>
|
|
|
|
> ```sh
|
|
|
|
> curl -sS https://raw.githubusercontent.com/ajeetdsouza/zoxide/main/install.sh | bash
|
|
|
|
> ```
|
|
|
|
>
|
|
|
|
> Or, you can use a package manager:
|
|
|
|
>
|
|
|
|
> | Distribution | Repository | Instructions |
|
|
|
|
> | ------------------- | ----------------------- | ----------------------------------------------------------------------------------------------------- |
|
2023-05-07 13:49:53 +00:00
|
|
|
> | **_Any_** | **[crates.io]** | `cargo install zoxide --locked` |
|
|
|
|
> | _Any_ | [asdf] | `asdf plugin add zoxide https://github.com/nyrst/asdf-zoxide.git` <br /> `asdf install zoxide latest` |
|
|
|
|
> | _Any_ | [conda-forge] | `conda install -c conda-forge zoxide` |
|
2024-02-15 21:15:36 +00:00
|
|
|
> | _Any_ | [guix] | `guix install zoxide` |
|
2023-05-07 13:49:53 +00:00
|
|
|
> | _Any_ | [Linuxbrew] | `brew install zoxide` |
|
2023-07-11 06:01:55 +00:00
|
|
|
> | _Any_ | [nixpkgs] | `nix-env -iA nixpkgs.zoxide` |
|
2023-01-26 17:05:43 +00:00
|
|
|
> | Alpine Linux 3.13+ | [Alpine Linux Packages] | `apk add zoxide` |
|
2023-09-03 06:54:13 +00:00
|
|
|
> | Arch Linux | [Arch Linux Extra] | `pacman -S zoxide` |
|
2023-01-26 17:05:43 +00:00
|
|
|
> | CentOS 7+ | [Copr] | `dnf copr enable atim/zoxide` <br /> `dnf install zoxide` |
|
2024-02-15 18:31:38 +00:00
|
|
|
> | ~Debian 11+~[^1] | ~[Debian Packages]~ | ~`apt install zoxide`~ |
|
2024-02-15 16:18:20 +00:00
|
|
|
> | Devuan 4.0+ | [Devuan Packages] | `apt install zoxide` |
|
2023-01-26 17:05:43 +00:00
|
|
|
> | Fedora 32+ | [Fedora Packages] | `dnf install zoxide` |
|
|
|
|
> | Gentoo | [GURU Overlay] | `eselect repository enable guru` <br /> `emerge --sync guru` <br /> `emerge app-shells/zoxide` |
|
|
|
|
> | Manjaro | | `pacman -S zoxide` |
|
|
|
|
> | openSUSE Tumbleweed | [openSUSE Factory] | `zypper install zoxide` |
|
2024-02-15 18:31:38 +00:00
|
|
|
> | ~Parrot OS~[^1] | | ~`apt install zoxide`~ |
|
|
|
|
> | ~Raspbian 11+~[^1] | ~[Raspbian Packages]~ | ~`apt install zoxide`~ |
|
2023-09-03 06:54:13 +00:00
|
|
|
> | Rhino Linux | [Pacstall Packages] | `pacstall -I zoxide-deb` |
|
2023-01-26 17:05:43 +00:00
|
|
|
> | Slackware 15.0+ | [SlackBuilds] | [Instructions][slackbuilds-howto] |
|
2024-02-20 09:14:50 +00:00
|
|
|
> | Solus | [Solus Packages] | `eopkg install zoxide` |
|
2024-02-15 18:31:38 +00:00
|
|
|
> | ~Ubuntu 21.04+~[^1] | ~[Ubuntu Packages]~ | ~`apt install zoxide`~ |
|
2023-01-26 17:05:43 +00:00
|
|
|
> | Void Linux | [Void Linux Packages] | `xbps-install -S zoxide` |
|
|
|
|
|
|
|
|
</details>
|
|
|
|
|
|
|
|
<details>
|
|
|
|
<summary>macOS</summary>
|
|
|
|
|
|
|
|
> To install zoxide, use a package manager:
|
|
|
|
>
|
|
|
|
> | Repository | Instructions |
|
|
|
|
> | --------------- | ----------------------------------------------------------------------------------------------------- |
|
|
|
|
> | **[crates.io]** | `cargo install zoxide --locked` |
|
|
|
|
> | **[Homebrew]** | `brew install zoxide` |
|
|
|
|
> | [asdf] | `asdf plugin add zoxide https://github.com/nyrst/asdf-zoxide.git` <br /> `asdf install zoxide latest` |
|
|
|
|
> | [conda-forge] | `conda install -c conda-forge zoxide` |
|
|
|
|
> | [MacPorts] | `port install zoxide` |
|
2023-07-11 06:01:55 +00:00
|
|
|
> | [nixpkgs] | `nix-env -iA nixpkgs.zoxide` |
|
2023-07-15 13:03:49 +00:00
|
|
|
>
|
2023-01-26 17:05:43 +00:00
|
|
|
> Or, run this command in your terminal:
|
|
|
|
>
|
|
|
|
> ```sh
|
|
|
|
> curl -sS https://raw.githubusercontent.com/ajeetdsouza/zoxide/main/install.sh | bash
|
|
|
|
> ```
|
|
|
|
|
|
|
|
</details>
|
|
|
|
|
|
|
|
<details>
|
|
|
|
<summary>Windows</summary>
|
|
|
|
|
2024-02-20 09:36:59 +00:00
|
|
|
> zoxide works with PowerShell, as well as shells running in Cygwin, Git
|
|
|
|
> Bash, and MSYS2.
|
|
|
|
>
|
2023-01-31 05:07:50 +00:00
|
|
|
> The recommended way to install zoxide is via `winget`:
|
2023-01-26 17:05:43 +00:00
|
|
|
>
|
|
|
|
> ```sh
|
2023-09-11 08:42:25 +00:00
|
|
|
> winget install ajeetdsouza.zoxide
|
2023-01-26 17:05:43 +00:00
|
|
|
> ```
|
|
|
|
>
|
2023-01-31 05:07:50 +00:00
|
|
|
> Or, you can use an alternative package manager:
|
2023-01-26 17:05:43 +00:00
|
|
|
>
|
|
|
|
> | Repository | Instructions |
|
|
|
|
> | --------------- | ------------------------------------- |
|
|
|
|
> | **[crates.io]** | `cargo install zoxide --locked` |
|
|
|
|
> | [Chocolatey] | `choco install zoxide` |
|
|
|
|
> | [conda-forge] | `conda install -c conda-forge zoxide` |
|
|
|
|
> | [Scoop] | `scoop install zoxide` |
|
|
|
|
|
|
|
|
</details>
|
|
|
|
|
|
|
|
<details>
|
|
|
|
<summary>BSD</summary>
|
|
|
|
|
|
|
|
> To install zoxide, use a package manager:
|
|
|
|
>
|
|
|
|
> | Distribution | Repository | Instructions |
|
|
|
|
> | ------------- | --------------- | ------------------------------- |
|
2023-05-07 13:49:53 +00:00
|
|
|
> | **_Any_** | **[crates.io]** | `cargo install zoxide --locked` |
|
2023-01-26 17:05:43 +00:00
|
|
|
> | DragonFly BSD | [DPorts] | `pkg install zoxide` |
|
|
|
|
> | FreeBSD | [FreshPorts] | `pkg install zoxide` |
|
|
|
|
> | NetBSD | [pkgsrc] | `pkgin install zoxide` |
|
2024-02-20 09:21:19 +00:00
|
|
|
>
|
|
|
|
> Or, run this command in your terminal:
|
|
|
|
>
|
|
|
|
> ```sh
|
|
|
|
> curl -sS https://raw.githubusercontent.com/ajeetdsouza/zoxide/main/install.sh | bash
|
|
|
|
> ```
|
2023-01-26 17:05:43 +00:00
|
|
|
|
|
|
|
</details>
|
|
|
|
|
|
|
|
<details>
|
|
|
|
<summary>Android</summary>
|
|
|
|
|
|
|
|
> To install zoxide, use a package manager:
|
|
|
|
>
|
|
|
|
> | Repository | Instructions |
|
|
|
|
> | ---------- | -------------------- |
|
|
|
|
> | [Termux] | `pkg install zoxide` |
|
|
|
|
|
|
|
|
</details>
|
|
|
|
|
|
|
|
2. **Setup zoxide on your shell**
|
|
|
|
|
|
|
|
To start using zoxide, add it to your shell.
|
|
|
|
|
|
|
|
<details>
|
|
|
|
<summary>Bash</summary>
|
|
|
|
|
2024-02-22 18:17:39 +00:00
|
|
|
> Add this to the <ins>**end**</ins> of your config file (usually `~/.bashrc`):
|
2023-01-26 17:05:43 +00:00
|
|
|
>
|
|
|
|
> ```sh
|
|
|
|
> eval "$(zoxide init bash)"
|
|
|
|
> ```
|
|
|
|
|
|
|
|
</details>
|
|
|
|
|
|
|
|
<details>
|
|
|
|
<summary>Elvish</summary>
|
|
|
|
|
2024-02-22 18:17:39 +00:00
|
|
|
> Add this to the <ins>**end**</ins> of your config file (usually `~/.elvish/rc.elv`):
|
2023-01-26 17:05:43 +00:00
|
|
|
>
|
|
|
|
> ```sh
|
|
|
|
> eval (zoxide init elvish | slurp)
|
|
|
|
> ```
|
|
|
|
>
|
|
|
|
> **Note**
|
|
|
|
> zoxide only supports elvish v0.18.0 and above.
|
|
|
|
|
|
|
|
</details>
|
|
|
|
|
|
|
|
<details>
|
|
|
|
<summary>Fish</summary>
|
|
|
|
|
2024-02-22 18:17:39 +00:00
|
|
|
> Add this to the <ins>**end**</ins> of your config file (usually
|
2023-05-08 17:10:04 +00:00
|
|
|
> `~/.config/fish/config.fish`):
|
2023-01-26 17:05:43 +00:00
|
|
|
>
|
|
|
|
> ```fish
|
|
|
|
> zoxide init fish | source
|
|
|
|
> ```
|
|
|
|
|
|
|
|
</details>
|
|
|
|
|
|
|
|
<details>
|
|
|
|
<summary>Nushell</summary>
|
|
|
|
|
2024-02-22 18:17:39 +00:00
|
|
|
> Add this to the <ins>**end**</ins> of your env file (find it by running `$nu.env-path`
|
2023-05-08 17:10:04 +00:00
|
|
|
> in Nushell):
|
2023-01-26 17:05:43 +00:00
|
|
|
>
|
|
|
|
> ```sh
|
|
|
|
> zoxide init nushell | save -f ~/.zoxide.nu
|
|
|
|
> ```
|
|
|
|
>
|
2024-02-22 18:17:39 +00:00
|
|
|
> Now, add this to the <ins>**end**</ins> of your config file (find it by running
|
2023-01-26 17:05:43 +00:00
|
|
|
> `$nu.config-path` in Nushell):
|
|
|
|
>
|
|
|
|
> ```sh
|
|
|
|
> source ~/.zoxide.nu
|
|
|
|
> ```
|
|
|
|
>
|
|
|
|
> **Note**
|
2024-02-12 21:31:04 +00:00
|
|
|
> zoxide only supports Nushell v0.89.0+.
|
2023-01-26 17:05:43 +00:00
|
|
|
|
|
|
|
</details>
|
|
|
|
|
|
|
|
<details>
|
|
|
|
<summary>PowerShell</summary>
|
|
|
|
|
2024-02-22 18:17:39 +00:00
|
|
|
> Add this to the <ins>**end**</ins> of your config file (find it by running
|
2023-05-08 17:10:04 +00:00
|
|
|
> `echo $profile` in PowerShell):
|
2023-01-26 17:05:43 +00:00
|
|
|
>
|
2023-05-07 13:49:53 +00:00
|
|
|
> ```powershell
|
|
|
|
> Invoke-Expression (& { (zoxide init powershell | Out-String) })
|
|
|
|
> ```
|
2023-01-26 17:05:43 +00:00
|
|
|
|
|
|
|
</details>
|
|
|
|
|
|
|
|
<details>
|
|
|
|
<summary>Xonsh</summary>
|
|
|
|
|
2024-02-22 18:17:39 +00:00
|
|
|
> Add this to the <ins>**end**</ins> of your config file (usually `~/.xonshrc`):
|
2023-01-26 17:05:43 +00:00
|
|
|
>
|
|
|
|
> ```python
|
|
|
|
> execx($(zoxide init xonsh), 'exec', __xonsh__.ctx, filename='zoxide')
|
|
|
|
> ```
|
|
|
|
|
|
|
|
</details>
|
|
|
|
|
|
|
|
<details>
|
|
|
|
<summary>Zsh</summary>
|
|
|
|
|
2024-02-22 18:17:39 +00:00
|
|
|
> Add this to the <ins>**end**</ins> of your config file (usually `~/.zshrc`):
|
2023-01-26 17:05:43 +00:00
|
|
|
>
|
|
|
|
> ```sh
|
|
|
|
> eval "$(zoxide init zsh)"
|
|
|
|
> ```
|
|
|
|
>
|
2023-05-07 13:49:53 +00:00
|
|
|
> For completions to work, the above line must be added _after_ `compinit` is
|
2023-01-26 17:05:43 +00:00
|
|
|
> called. You may have to rebuild your completions cache by running
|
|
|
|
> `rm ~/.zcompdump*; compinit`.
|
|
|
|
|
|
|
|
</details>
|
|
|
|
|
|
|
|
<details>
|
|
|
|
<summary>Any POSIX shell</summary>
|
|
|
|
|
2024-02-22 18:17:39 +00:00
|
|
|
> Add this to the <ins>**end**</ins> of your config file:
|
2023-01-26 17:05:43 +00:00
|
|
|
>
|
|
|
|
> ```sh
|
|
|
|
> eval "$(zoxide init posix --hook prompt)"
|
|
|
|
> ```
|
|
|
|
|
|
|
|
</details>
|
|
|
|
|
|
|
|
3. **Install fzf** <sup>(optional)</sup>
|
|
|
|
|
|
|
|
[fzf] is a command-line fuzzy finder, used by zoxide for completions /
|
|
|
|
interactive selection. It can be installed from [here][fzf-installation].
|
|
|
|
|
|
|
|
> **Note**
|
|
|
|
> zoxide only supports fzf v0.33.0 and above.
|
|
|
|
|
|
|
|
4. **Import your data** <sup>(optional)</sup>
|
|
|
|
|
|
|
|
If you currently use any of these plugins, you may want to import your data
|
|
|
|
into zoxide:
|
|
|
|
|
|
|
|
<details>
|
|
|
|
<summary>autojump</summary>
|
|
|
|
|
|
|
|
> Run this command in your terminal:
|
|
|
|
>
|
|
|
|
> ```sh
|
|
|
|
> zoxide import --from=autojump "/path/to/autojump/db"
|
|
|
|
> ```
|
|
|
|
>
|
|
|
|
> The path usually varies according to your system:
|
|
|
|
>
|
|
|
|
> | OS | Path | Example |
|
|
|
|
> | ------- | ------------------------------------------------------------------------------------ | ------------------------------------------------------ |
|
|
|
|
> | Linux | `$XDG_DATA_HOME/autojump/autojump.txt` or `$HOME/.local/share/autojump/autojump.txt` | `/home/alice/.local/share/autojump/autojump.txt` |
|
|
|
|
> | macOS | `$HOME/Library/autojump/autojump.txt` | `/Users/Alice/Library/autojump/autojump.txt` |
|
|
|
|
> | Windows | `%APPDATA%\autojump\autojump.txt` | `C:\Users\Alice\AppData\Roaming\autojump\autojump.txt` |
|
|
|
|
|
|
|
|
</details>
|
|
|
|
|
|
|
|
<details>
|
|
|
|
<summary>fasd, z, z.lua, zsh-z</summary>
|
|
|
|
|
|
|
|
> Run this command in your terminal:
|
|
|
|
>
|
|
|
|
> ```sh
|
|
|
|
> zoxide import --from=z "path/to/z/db"
|
|
|
|
> ```
|
|
|
|
>
|
|
|
|
> The path usually varies according to your system:
|
|
|
|
>
|
|
|
|
> | Plugin | Path |
|
|
|
|
> | ---------------- | ----------------------------------------------------------------------------------- |
|
|
|
|
> | fasd | `$_FASD_DATA` or `$HOME/.fasd` |
|
|
|
|
> | z (bash/zsh) | `$_Z_DATA` or `$HOME/.z` |
|
|
|
|
> | z (fish) | `$Z_DATA` or `$XDG_DATA_HOME/z/data` or `$HOME/.local/share/z/data` |
|
|
|
|
> | z.lua (bash/zsh) | `$_ZL_DATA` or `$HOME/.zlua` |
|
|
|
|
> | z.lua (fish) | `$XDG_DATA_HOME/zlua/zlua.txt` or `$HOME/.local/share/zlua/zlua.txt` or `$_ZL_DATA` |
|
|
|
|
> | zsh-z | `$ZSHZ_DATA` or `$_Z_DATA` or `$HOME/.z` |
|
|
|
|
|
|
|
|
</details>
|
|
|
|
|
|
|
|
<details>
|
|
|
|
<summary>ZLocation</summary>
|
|
|
|
|
|
|
|
> Run this command in PowerShell:
|
|
|
|
>
|
|
|
|
> ```powershell
|
|
|
|
> $db = New-TemporaryFile
|
|
|
|
> (Get-ZLocation).GetEnumerator() | ForEach-Object { Write-Output ($_.Name+'|'+$_.Value+'|0') } | Out-File $db
|
|
|
|
> zoxide import --from=z $db
|
|
|
|
> ```
|
|
|
|
|
|
|
|
</details>
|
2021-08-05 08:52:12 +00:00
|
|
|
|
2020-03-07 21:04:47 +00:00
|
|
|
## Configuration
|
|
|
|
|
2021-07-21 19:07:20 +00:00
|
|
|
### Flags
|
|
|
|
|
|
|
|
When calling `zoxide init`, the following flags are available:
|
2020-03-15 18:36:06 +00:00
|
|
|
|
2021-07-21 19:07:20 +00:00
|
|
|
- `--cmd`
|
2022-04-10 22:11:51 +00:00
|
|
|
- Changes the prefix of the `z` and `zi` commands.
|
|
|
|
- `--cmd j` would change the commands to (`j`, `ji`).
|
2024-02-15 21:01:47 +00:00
|
|
|
- `--cmd cd` would replace the `cd` command.
|
2021-07-21 19:07:20 +00:00
|
|
|
- `--hook <HOOK>`
|
2021-10-28 06:38:57 +00:00
|
|
|
- Changes how often zoxide increments a directory's score:
|
2021-07-21 19:07:20 +00:00
|
|
|
| Hook | Description |
|
|
|
|
| -------- | --------------------------------- |
|
|
|
|
| `none` | Never |
|
|
|
|
| `prompt` | At every shell prompt |
|
|
|
|
| `pwd` | Whenever the directory is changed |
|
2022-04-10 22:11:51 +00:00
|
|
|
- `--no-cmd`
|
|
|
|
- Prevents zoxide from defining the `z` and `zi` commands.
|
2021-04-11 20:26:48 +00:00
|
|
|
- These functions will still be available in your shell as `__zoxide_z` and
|
2021-07-21 19:07:20 +00:00
|
|
|
`__zoxide_zi`, should you choose to redefine them.
|
2020-03-15 18:36:06 +00:00
|
|
|
|
2020-03-07 21:04:47 +00:00
|
|
|
### Environment variables
|
|
|
|
|
2023-01-26 17:05:43 +00:00
|
|
|
Environment variables[^2] can be used for configuration. They must be set before
|
|
|
|
`zoxide init` is called.
|
2021-03-31 16:45:43 +00:00
|
|
|
|
2021-03-14 15:19:51 +00:00
|
|
|
- `_ZO_DATA_DIR`
|
2021-09-28 22:33:29 +00:00
|
|
|
- Specifies the directory in which the database is stored.
|
2021-03-14 15:19:51 +00:00
|
|
|
- The default value varies across OSes:
|
|
|
|
| OS | Path | Example |
|
|
|
|
| ----------- | ---------------------------------------- | ------------------------------------------ |
|
|
|
|
| Linux / BSD | `$XDG_DATA_HOME` or `$HOME/.local/share` | `/home/alice/.local/share` |
|
|
|
|
| macOS | `$HOME/Library/Application Support` | `/Users/Alice/Library/Application Support` |
|
2022-02-27 13:40:08 +00:00
|
|
|
| Windows | `%LOCALAPPDATA%` | `C:\Users\Alice\AppData\Local` |
|
2021-03-14 15:19:51 +00:00
|
|
|
- `_ZO_ECHO`
|
2021-10-28 06:38:57 +00:00
|
|
|
- When set to 1, `z` will print the matched directory before navigating to
|
2021-04-11 20:26:48 +00:00
|
|
|
it.
|
2021-03-14 15:19:51 +00:00
|
|
|
- `_ZO_EXCLUDE_DIRS`
|
|
|
|
- Excludes the specified directories from the database.
|
2021-04-11 20:26:48 +00:00
|
|
|
- This is provided as a list of [globs][glob], separated by OS-specific
|
|
|
|
characters:
|
2021-03-14 15:19:51 +00:00
|
|
|
| OS | Separator | Example |
|
|
|
|
| ------------------- | --------- | ----------------------- |
|
|
|
|
| Linux / macOS / BSD | `:` | `$HOME:$HOME/private/*` |
|
|
|
|
| Windows | `;` | `$HOME;$HOME/private/*` |
|
2021-04-28 19:54:25 +00:00
|
|
|
- By default, this is set to `"$HOME"`.
|
2021-03-14 15:19:51 +00:00
|
|
|
- `_ZO_FZF_OPTS`
|
2021-10-28 06:38:57 +00:00
|
|
|
- Custom options to pass to [fzf] during interactive selection. See
|
|
|
|
[`man fzf`][fzf-man] for the list of options.
|
2021-03-14 15:19:51 +00:00
|
|
|
- `_ZO_MAXAGE`
|
2021-04-11 20:26:48 +00:00
|
|
|
- Configures the [aging algorithm][algorithm-aging], which limits the maximum
|
|
|
|
number of entries in the database.
|
2021-10-28 06:38:57 +00:00
|
|
|
- By default, this is set to 10000.
|
2021-03-14 15:19:51 +00:00
|
|
|
- `_ZO_RESOLVE_SYMLINKS`
|
2021-10-28 06:38:57 +00:00
|
|
|
- When set to 1, `z` will resolve symlinks before adding directories to the
|
2021-04-11 20:26:48 +00:00
|
|
|
database.
|
2021-03-14 15:19:51 +00:00
|
|
|
|
2021-03-29 07:59:21 +00:00
|
|
|
## Third-party integrations
|
|
|
|
|
2023-01-26 17:05:43 +00:00
|
|
|
| Application | Description | Plugin |
|
|
|
|
| --------------------- | -------------------------------------------- | -------------------------- |
|
2023-06-26 08:28:15 +00:00
|
|
|
| [aerc] | Email client | Natively supported |
|
2023-01-26 17:05:43 +00:00
|
|
|
| [clink] | Improved cmd.exe for Windows | [clink-zoxide] |
|
|
|
|
| [emacs] | Text editor | [zoxide.el] |
|
|
|
|
| [felix] | File manager | Natively supported |
|
|
|
|
| [joshuto] | File manager | Natively supported |
|
|
|
|
| [lf] | File manager | See the [wiki][lf-wiki] |
|
|
|
|
| [nnn] | File manager | [nnn-autojump] |
|
|
|
|
| [ranger] | File manager | [ranger-zoxide] |
|
|
|
|
| [telescope.nvim] | Fuzzy finder for Neovim | [telescope-zoxide] |
|
2023-03-01 08:32:48 +00:00
|
|
|
| [t] | `tmux` session manager | Natively supported |
|
|
|
|
| [tmux-session-wizard] | `tmux` session manager | Natively supported |
|
2023-01-26 17:05:43 +00:00
|
|
|
| [vim] / [neovim] | Text editor | [zoxide.vim] |
|
|
|
|
| [xplr] | File manager | [zoxide.xplr] |
|
|
|
|
| [xxh] | Transports shell configuration over SSH | [xxh-plugin-prerun-zoxide] |
|
|
|
|
| [zabb] | Finds the shortest possible query for a path | Natively supported |
|
|
|
|
| [zsh-autocomplete] | Realtime completions for zsh | Natively supported |
|
|
|
|
|
2023-05-07 13:49:53 +00:00
|
|
|
[^1]:
|
|
|
|
Debian / Ubuntu derivatives update their packages very slowly. If you're
|
|
|
|
using one of these distributions, consider using the install script instead.
|
|
|
|
|
|
|
|
[^2]:
|
|
|
|
If you're not sure how to set an environment variable on your shell, check
|
|
|
|
out the [wiki][wiki-env].
|
2021-03-29 07:59:21 +00:00
|
|
|
|
2023-06-26 08:28:15 +00:00
|
|
|
[aerc]: https://github.com/rjarry/aerc
|
2021-04-11 20:26:48 +00:00
|
|
|
[algorithm-aging]: https://github.com/ajeetdsouza/zoxide/wiki/Algorithm#aging
|
|
|
|
[algorithm-matching]: https://github.com/ajeetdsouza/zoxide/wiki/Algorithm#matching
|
2021-03-14 15:19:51 +00:00
|
|
|
[alpine linux packages]: https://pkgs.alpinelinux.org/packages?name=zoxide
|
2023-06-18 06:32:36 +00:00
|
|
|
[arch linux extra]: https://archlinux.org/packages/extra/x86_64/zoxide/
|
2023-01-26 17:05:43 +00:00
|
|
|
[asdf]: https://github.com/asdf-vm/asdf
|
2022-11-15 08:17:37 +00:00
|
|
|
[builtwithnix-badge]: https://img.shields.io/badge/builtwith-nix-7d81f7?logo=nixos&logoColor=white&style=flat-square
|
2021-09-06 20:54:11 +00:00
|
|
|
[builtwithnix]: https://builtwithnix.org/
|
2021-06-06 02:55:53 +00:00
|
|
|
[chocolatey]: https://community.chocolatey.org/packages/zoxide
|
2022-03-03 23:36:32 +00:00
|
|
|
[clink-zoxide]: https://github.com/shunsambongi/clink-zoxide
|
|
|
|
[clink]: https://github.com/mridgers/clink
|
2021-06-06 18:59:05 +00:00
|
|
|
[conda-forge]: https://anaconda.org/conda-forge/zoxide
|
2021-03-14 15:19:51 +00:00
|
|
|
[copr]: https://copr.fedorainfracloud.org/coprs/atim/zoxide/
|
2022-11-15 08:17:37 +00:00
|
|
|
[crates.io-badge]: https://img.shields.io/crates/v/zoxide?logo=rust&logoColor=white&style=flat-square
|
2021-08-05 08:52:12 +00:00
|
|
|
[crates.io]: https://crates.io/crates/zoxide
|
2021-08-30 08:19:18 +00:00
|
|
|
[debian packages]: https://packages.debian.org/stable/admin/zoxide
|
2021-04-28 19:53:43 +00:00
|
|
|
[devuan packages]: https://pkginfo.devuan.org/cgi-bin/package-query.html?c=package&q=zoxide
|
2022-11-15 08:17:37 +00:00
|
|
|
[downloads-badge]: https://img.shields.io/github/downloads/ajeetdsouza/zoxide/total?logo=github&logoColor=white&style=flat-square
|
2021-03-14 15:19:51 +00:00
|
|
|
[dports]: https://github.com/DragonFlyBSD/DPorts/tree/master/sysutils/zoxide
|
2021-07-29 06:59:41 +00:00
|
|
|
[emacs]: https://www.gnu.org/software/emacs/
|
2021-03-14 15:19:51 +00:00
|
|
|
[fedora packages]: https://src.fedoraproject.org/rpms/rust-zoxide
|
2022-04-13 07:30:10 +00:00
|
|
|
[felix]: https://github.com/kyoheiu/felix
|
2021-04-11 20:26:48 +00:00
|
|
|
[freshports]: https://www.freshports.org/sysutils/zoxide/
|
|
|
|
[fzf-installation]: https://github.com/junegunn/fzf#installation
|
2021-09-28 22:33:29 +00:00
|
|
|
[fzf-man]: https://manpages.ubuntu.com/manpages/en/man1/fzf.1.html
|
2021-04-11 20:26:48 +00:00
|
|
|
[fzf]: https://github.com/junegunn/fzf
|
|
|
|
[glob]: https://man7.org/linux/man-pages/man7/glob.7.html
|
2024-02-15 21:15:36 +00:00
|
|
|
[guix]: https://packages.guix.gnu.org/packages/zoxide/
|
2021-07-21 19:07:20 +00:00
|
|
|
[guru overlay]: https://github.com/gentoo-mirror/guru
|
2021-03-14 15:19:51 +00:00
|
|
|
[homebrew]: https://formulae.brew.sh/formula/zoxide
|
2021-07-21 19:07:20 +00:00
|
|
|
[issues]: https://github.com/ajeetdsouza/zoxide/issues/new
|
2022-05-04 21:23:36 +00:00
|
|
|
[joshuto]: https://github.com/kamiyaa/joshuto
|
2022-04-26 14:39:17 +00:00
|
|
|
[lf]: https://github.com/gokcehan/lf
|
|
|
|
[lf-wiki]: https://github.com/gokcehan/lf/wiki/Integrations#zoxide
|
2021-03-14 15:19:51 +00:00
|
|
|
[linuxbrew]: https://formulae.brew.sh/formula-linux/zoxide
|
|
|
|
[macports]: https://ports.macports.org/port/zoxide/summary
|
2021-06-06 18:05:59 +00:00
|
|
|
[neovim]: https://github.com/neovim/neovim
|
2021-04-11 20:26:48 +00:00
|
|
|
[nixpkgs]: https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/misc/zoxide/default.nix
|
|
|
|
[nnn-autojump]: https://github.com/jarun/nnn/blob/master/plugins/autojump
|
|
|
|
[nnn]: https://github.com/jarun/nnn
|
2022-07-07 15:26:24 +00:00
|
|
|
[opensuse factory]: https://build.opensuse.org/package/show/openSUSE:Factory/zoxide
|
2023-09-03 06:54:13 +00:00
|
|
|
[pacstall packages]: https://pacstall.dev/packages/zoxide-deb
|
2020-11-27 09:50:06 +00:00
|
|
|
[pkgsrc]: https://pkgsrc.se/sysutils/zoxide
|
2021-06-06 18:05:59 +00:00
|
|
|
[ranger-zoxide]: https://github.com/jchook/ranger-zoxide
|
|
|
|
[ranger]: https://github.com/ranger/ranger
|
2021-11-30 21:48:33 +00:00
|
|
|
[raspbian packages]: https://archive.raspbian.org/raspbian/pool/main/r/rust-zoxide/
|
2021-06-06 18:05:59 +00:00
|
|
|
[releases]: https://github.com/ajeetdsouza/zoxide/releases
|
2021-03-14 15:19:51 +00:00
|
|
|
[scoop]: https://github.com/ScoopInstaller/Main/tree/master/bucket/zoxide.json
|
2024-02-15 16:18:20 +00:00
|
|
|
[slackbuilds]: https://slackbuilds.org/repository/15.0/system/zoxide/
|
2022-10-28 14:50:23 +00:00
|
|
|
[slackbuilds-howto]: https://slackbuilds.org/howto/
|
2024-02-20 09:14:50 +00:00
|
|
|
[solus packages]: https://github.com/getsolus/packages/tree/main/packages/z/zoxide/
|
2023-03-01 08:32:48 +00:00
|
|
|
[t]: https://github.com/joshmedeski/t-smart-tmux-session-manager
|
2021-05-18 02:28:16 +00:00
|
|
|
[telescope-zoxide]: https://github.com/jvgrootveld/telescope-zoxide
|
2021-09-28 22:33:29 +00:00
|
|
|
[telescope.nvim]: https://github.com/nvim-telescope/telescope.nvim
|
2021-03-14 15:19:51 +00:00
|
|
|
[termux]: https://github.com/termux/termux-packages/tree/master/packages/zoxide
|
2023-01-26 17:05:43 +00:00
|
|
|
[tmux-session-wizard]: https://github.com/27medkamal/tmux-session-wizard
|
2021-05-15 04:13:55 +00:00
|
|
|
[tutorial]: contrib/tutorial.webp
|
2022-07-04 09:05:41 +00:00
|
|
|
[ubuntu packages]: https://packages.ubuntu.com/jammy/zoxide
|
2021-06-06 18:05:59 +00:00
|
|
|
[vim]: https://github.com/vim/vim
|
2021-03-14 15:19:51 +00:00
|
|
|
[void linux packages]: https://github.com/void-linux/void-packages/tree/master/srcpkgs/zoxide
|
2021-09-28 22:33:29 +00:00
|
|
|
[wiki-env]: https://github.com/ajeetdsouza/zoxide/wiki/HOWTO:-set-environment-variables "HOWTO: set environment variables"
|
2021-10-05 10:26:04 +00:00
|
|
|
[xplr]: https://github.com/sayanarijit/xplr
|
2021-09-28 22:33:29 +00:00
|
|
|
[xxh-plugin-prerun-zoxide]: https://github.com/xxh/xxh-plugin-prerun-zoxide
|
2021-04-11 20:26:48 +00:00
|
|
|
[xxh]: https://github.com/xxh/xxh
|
2022-03-03 23:36:32 +00:00
|
|
|
[zabb]: https://github.com/Mellbourn/zabb
|
2021-09-28 22:33:29 +00:00
|
|
|
[zoxide.el]: https://gitlab.com/Vonfry/zoxide.el
|
|
|
|
[zoxide.vim]: https://github.com/nanotee/zoxide.vim
|
2021-10-05 10:26:04 +00:00
|
|
|
[zoxide.xplr]: https://github.com/sayanarijit/zoxide.xplr
|
2021-05-18 02:28:16 +00:00
|
|
|
[zsh-autocomplete]: https://github.com/marlonrichert/zsh-autocomplete
|