mirror of
https://github.com/Llewellynvdm/zoxide.git
synced 2024-11-22 12:55:13 +00:00
Improve clarity of setup instructions
This commit is contained in:
parent
ce8f2395d5
commit
e05637ded1
22
README.md
22
README.md
@ -172,7 +172,7 @@ zoxide can be installed in 4 easy steps:
|
|||||||
<details>
|
<details>
|
||||||
<summary>Bash</summary>
|
<summary>Bash</summary>
|
||||||
|
|
||||||
> Add this to your configuration (usually `~/.bashrc`):
|
> Add this to the **end** of your config file (usually `~/.bashrc`):
|
||||||
>
|
>
|
||||||
> ```sh
|
> ```sh
|
||||||
> eval "$(zoxide init bash)"
|
> eval "$(zoxide init bash)"
|
||||||
@ -183,7 +183,7 @@ zoxide can be installed in 4 easy steps:
|
|||||||
<details>
|
<details>
|
||||||
<summary>Elvish</summary>
|
<summary>Elvish</summary>
|
||||||
|
|
||||||
> Add this to your configuration (usually `~/.elvish/rc.elv`):
|
> Add this to the **end** of your config file (usually `~/.elvish/rc.elv`):
|
||||||
>
|
>
|
||||||
> ```sh
|
> ```sh
|
||||||
> eval (zoxide init elvish | slurp)
|
> eval (zoxide init elvish | slurp)
|
||||||
@ -197,7 +197,8 @@ zoxide can be installed in 4 easy steps:
|
|||||||
<details>
|
<details>
|
||||||
<summary>Fish</summary>
|
<summary>Fish</summary>
|
||||||
|
|
||||||
> Add this to your configuration (usually `~/.config/fish/config.fish`):
|
> Add this to the **end** of your config file (usually
|
||||||
|
> `~/.config/fish/config.fish`):
|
||||||
>
|
>
|
||||||
> ```fish
|
> ```fish
|
||||||
> zoxide init fish | source
|
> zoxide init fish | source
|
||||||
@ -208,13 +209,14 @@ zoxide can be installed in 4 easy steps:
|
|||||||
<details>
|
<details>
|
||||||
<summary>Nushell</summary>
|
<summary>Nushell</summary>
|
||||||
|
|
||||||
> Add this to your env file (find it by running `$nu.env-path` in Nushell):
|
> Add this to the **end** of your env file (find it by running `$nu.env-path`
|
||||||
|
> in Nushell):
|
||||||
>
|
>
|
||||||
> ```sh
|
> ```sh
|
||||||
> zoxide init nushell | save -f ~/.zoxide.nu
|
> zoxide init nushell | save -f ~/.zoxide.nu
|
||||||
> ```
|
> ```
|
||||||
>
|
>
|
||||||
> Now, add this to the end of your config file (find it by running
|
> Now, add this to the **end** of your config file (find it by running
|
||||||
> `$nu.config-path` in Nushell):
|
> `$nu.config-path` in Nushell):
|
||||||
>
|
>
|
||||||
> ```sh
|
> ```sh
|
||||||
@ -229,8 +231,8 @@ zoxide can be installed in 4 easy steps:
|
|||||||
<details>
|
<details>
|
||||||
<summary>PowerShell</summary>
|
<summary>PowerShell</summary>
|
||||||
|
|
||||||
> Add this to your configuration (find it by running `echo $profile` in
|
> Add this to the **end** of your config file (find it by running
|
||||||
> PowerShell):
|
> `echo $profile` in PowerShell):
|
||||||
>
|
>
|
||||||
> ```powershell
|
> ```powershell
|
||||||
> Invoke-Expression (& { (zoxide init powershell | Out-String) })
|
> Invoke-Expression (& { (zoxide init powershell | Out-String) })
|
||||||
@ -241,7 +243,7 @@ zoxide can be installed in 4 easy steps:
|
|||||||
<details>
|
<details>
|
||||||
<summary>Xonsh</summary>
|
<summary>Xonsh</summary>
|
||||||
|
|
||||||
> Add this to your configuration (usually `~/.xonshrc`):
|
> Add this to the **end** of your config file (usually `~/.xonshrc`):
|
||||||
>
|
>
|
||||||
> ```python
|
> ```python
|
||||||
> execx($(zoxide init xonsh), 'exec', __xonsh__.ctx, filename='zoxide')
|
> execx($(zoxide init xonsh), 'exec', __xonsh__.ctx, filename='zoxide')
|
||||||
@ -252,7 +254,7 @@ zoxide can be installed in 4 easy steps:
|
|||||||
<details>
|
<details>
|
||||||
<summary>Zsh</summary>
|
<summary>Zsh</summary>
|
||||||
|
|
||||||
> Add this to your configuration (usually `~/.zshrc`):
|
> Add this to the **end** of your config file (usually `~/.zshrc`):
|
||||||
>
|
>
|
||||||
> ```sh
|
> ```sh
|
||||||
> eval "$(zoxide init zsh)"
|
> eval "$(zoxide init zsh)"
|
||||||
@ -267,7 +269,7 @@ zoxide can be installed in 4 easy steps:
|
|||||||
<details>
|
<details>
|
||||||
<summary>Any POSIX shell</summary>
|
<summary>Any POSIX shell</summary>
|
||||||
|
|
||||||
> Add this to your configuration:
|
> Add this to the **end** of your config file:
|
||||||
>
|
>
|
||||||
> ```sh
|
> ```sh
|
||||||
> eval "$(zoxide init posix --hook prompt)"
|
> eval "$(zoxide init posix --hook prompt)"
|
||||||
|
@ -7,14 +7,14 @@
|
|||||||
To initialize zoxide on your shell:
|
To initialize zoxide on your shell:
|
||||||
.TP
|
.TP
|
||||||
.B bash
|
.B bash
|
||||||
Add this to your configuration (usually \fB~/.bashrc\fR):
|
Add this to the \fBend\fR of your config file (usually \fB~/.bashrc\fR):
|
||||||
.sp
|
.sp
|
||||||
.nf
|
.nf
|
||||||
\fBeval "$(zoxide init bash)"\fR
|
\fBeval "$(zoxide init bash)"\fR
|
||||||
.fi
|
.fi
|
||||||
.TP
|
.TP
|
||||||
.B elvish
|
.B elvish
|
||||||
Add this to your configuration (usually \fB~/.elvish/rc.elv\fR):
|
Add this to the \fBend\fR of your config file (usually \fB~/.elvish/rc.elv\fR):
|
||||||
.sp
|
.sp
|
||||||
.nf
|
.nf
|
||||||
\fBeval $(zoxide init elvish | slurp)\fR
|
\fBeval $(zoxide init elvish | slurp)\fR
|
||||||
@ -23,20 +23,22 @@ Add this to your configuration (usually \fB~/.elvish/rc.elv\fR):
|
|||||||
Note: zoxide only supports elvish v0.18.0 and above.
|
Note: zoxide only supports elvish v0.18.0 and above.
|
||||||
.TP
|
.TP
|
||||||
.B fish
|
.B fish
|
||||||
Add this to your configuration (usually \fB~/.config/fish/config.fish\fR):
|
Add this to the \fBend\fR of your config file (usually
|
||||||
|
\fB~/.config/fish/config.fish\fR):
|
||||||
.sp
|
.sp
|
||||||
.nf
|
.nf
|
||||||
\fBzoxide init fish | source\fR
|
\fBzoxide init fish | source\fR
|
||||||
.fi
|
.fi
|
||||||
.TP
|
.TP
|
||||||
.B nushell
|
.B nushell
|
||||||
Add this to your env file (find it by running \fB$nu.env-path\fR in Nushell):
|
Add this to the \fBend\fR of your env file (find it by running
|
||||||
|
\fB$nu.env-path\fR in Nushell):
|
||||||
.sp
|
.sp
|
||||||
.nf
|
.nf
|
||||||
\fBzoxide init nushell | save -f ~/.zoxide.nu\fR
|
\fBzoxide init nushell | save -f ~/.zoxide.nu\fR
|
||||||
.fi
|
.fi
|
||||||
.sp
|
.sp
|
||||||
Now, add this to the end of your config file (find it by running
|
Now, add this to the \fBend\fR of your config file (find it by running
|
||||||
\fB$nu.config-path\fR in Nushell):
|
\fB$nu.config-path\fR in Nushell):
|
||||||
.sp
|
.sp
|
||||||
.nf
|
.nf
|
||||||
@ -46,22 +48,22 @@ Now, add this to the end of your config file (find it by running
|
|||||||
Note: zoxide only supports Nushell v0.73.0 and above.
|
Note: zoxide only supports Nushell v0.73.0 and above.
|
||||||
.TP
|
.TP
|
||||||
.B powershell
|
.B powershell
|
||||||
Add this to your configuration (find it by running \fBecho $profile\fR in
|
Add this to the \fBend\fR of your config file (find it by running \fBecho
|
||||||
PowerShell):
|
$profile\fR in PowerShell):
|
||||||
.sp
|
.sp
|
||||||
.nf
|
.nf
|
||||||
\fBInvoke-Expression (& { (zoxide init powershell | Out-String) })\fR
|
\fBInvoke-Expression (& { (zoxide init powershell | Out-String) })\fR
|
||||||
.fi
|
.fi
|
||||||
.TP
|
.TP
|
||||||
.B xonsh
|
.B xonsh
|
||||||
Add this to your configuration (usually \fB~/.xonshrc\fR):
|
Add this to the \fBend\fR of your config file (usually \fB~/.xonshrc\fR):
|
||||||
.sp
|
.sp
|
||||||
.nf
|
.nf
|
||||||
\fBexecx($(zoxide init xonsh), 'exec', __xonsh__.ctx, filename='zoxide')\fR
|
\fBexecx($(zoxide init xonsh), 'exec', __xonsh__.ctx, filename='zoxide')\fR
|
||||||
.fi
|
.fi
|
||||||
.TP
|
.TP
|
||||||
.B zsh
|
.B zsh
|
||||||
Add this to your configuration (usually \fB~/.zshrc\fR):
|
Add this to the \fBend\fR of your config file (usually \fB~/.zshrc\fR):
|
||||||
.sp
|
.sp
|
||||||
.nf
|
.nf
|
||||||
\fBeval "$(zoxide init zsh)"\fR
|
\fBeval "$(zoxide init zsh)"\fR
|
||||||
@ -69,7 +71,7 @@ Add this to your configuration (usually \fB~/.zshrc\fR):
|
|||||||
.TP
|
.TP
|
||||||
.B any POSIX shell
|
.B any POSIX shell
|
||||||
.sp
|
.sp
|
||||||
Add this to your configuration:
|
Add this to the \fBend\fR of your config file:
|
||||||
.sp
|
.sp
|
||||||
.nf
|
.nf
|
||||||
\fBeval "$(zoxide init posix --hook prompt)"\fR
|
\fBeval "$(zoxide init posix --hook prompt)"\fR
|
||||||
|
Loading…
Reference in New Issue
Block a user