Updated HOWTO: set environment variables (markdown)
parent
18a7b2bc4e
commit
82fdb64a18
|
|
@ -1,7 +1,9 @@
|
|||
The way you set environment variables is dependent on your shell. Assuming you want to set the `_ZO_ECHO` variable to `1`:
|
||||
|
||||
<details>
|
||||
<summary>Bash</summary>
|
||||
<summary><b>Bash</b></summary>
|
||||
|
||||
<blockquote>
|
||||
|
||||
Add this to your configuration (usually `~/.bashrc`):
|
||||
|
||||
|
|
@ -9,10 +11,13 @@ Add this to your configuration (usually `~/.bashrc`):
|
|||
export _ZO_ECHO='1'
|
||||
```
|
||||
|
||||
</blockquote>
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>Elvish</summary>
|
||||
<summary><b>Elvish</b></summary>
|
||||
|
||||
<blockquote>
|
||||
|
||||
Add this to your configuration (usually `~/.elvish/rc.elv`):
|
||||
|
||||
|
|
@ -20,10 +25,13 @@ Add this to your configuration (usually `~/.elvish/rc.elv`):
|
|||
set E:_ZO_ECHO = '1'
|
||||
```
|
||||
|
||||
</blockquote>
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>Fish</summary>
|
||||
<summary><b>Fish</b></summary>
|
||||
|
||||
<blockquote>
|
||||
|
||||
Add this to your configuration (usually `~/.config/fish/config.fish`):
|
||||
|
||||
|
|
@ -31,10 +39,13 @@ Add this to your configuration (usually `~/.config/fish/config.fish`):
|
|||
set -x _ZO_ECHO '1'
|
||||
```
|
||||
|
||||
</blockquote>
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>Nushell</summary>
|
||||
<summary><b>Nushell</b></summary>
|
||||
|
||||
<blockquote>
|
||||
|
||||
Add this to your configuration (find it by running `config path` in Nushell):
|
||||
|
||||
|
|
@ -43,10 +54,13 @@ Add this to your configuration (find it by running `config path` in Nushell):
|
|||
_ZO_ECHO = "1"
|
||||
```
|
||||
|
||||
</blockquote>
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>PowerShell</summary>
|
||||
<summary><b>PowerShell</b></summary>
|
||||
|
||||
<blockquote>
|
||||
|
||||
Add this to your configuration (find it by running `echo $profile` in
|
||||
PowerShell):
|
||||
|
|
@ -55,10 +69,13 @@ PowerShell):
|
|||
$env:_ZO_ECHO = '1'
|
||||
```
|
||||
|
||||
</blockquote>
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>Xonsh</summary>
|
||||
<summary><b>Xonsh</b></summary>
|
||||
|
||||
<blockquote>
|
||||
|
||||
Add this to your configuration (usually `~/.xonshrc`):
|
||||
|
||||
|
|
@ -66,10 +83,13 @@ Add this to your configuration (usually `~/.xonshrc`):
|
|||
$_ZO_ECHO = '1'
|
||||
```
|
||||
|
||||
</blockquote>
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>Zsh</summary>
|
||||
<summary><b>Zsh</b></summary>
|
||||
|
||||
<blockquote>
|
||||
|
||||
Add this to your configuration (usually `~/.zshrc`):
|
||||
|
||||
|
|
@ -77,10 +97,13 @@ Add this to your configuration (usually `~/.zshrc`):
|
|||
export _ZO_ECHO='1'
|
||||
```
|
||||
|
||||
</blockquote>
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>Any POSIX shell</summary>
|
||||
<summary><b>Any POSIX shell</b></summary>
|
||||
|
||||
<blockquote>
|
||||
|
||||
Add this to your configuration:
|
||||
|
||||
|
|
@ -88,6 +111,8 @@ Add this to your configuration:
|
|||
export _ZO_ECHO='1'
|
||||
```
|
||||
|
||||
</blockquote>
|
||||
</details>
|
||||
|
||||
Note that these must be set before calling `zoxide init`. The full list of variables can be found [here](https://github.com/ajeetdsouza/zoxide#environment-variables).
|
||||
> [!NOTE]
|
||||
> These must be set before calling `zoxide init`. The full list of variables can be found [here](https://github.com/ajeetdsouza/zoxide#environment-variables).
|
||||
Loading…
Reference in New Issue