mirror of
https://github.com/Llewellynvdm/zoxide.git
synced 2024-11-21 20:35:15 +00:00
--cmd cd works on all shells
This commit is contained in:
parent
90c66df2a8
commit
cf34d02288
@ -372,7 +372,7 @@ When calling `zoxide init`, the following flags are available:
|
||||
- `--cmd`
|
||||
- Changes the prefix of the `z` and `zi` commands.
|
||||
- `--cmd j` would change the commands to (`j`, `ji`).
|
||||
- `--cmd cd` would replace the `cd` command (doesn't work on Nushell / POSIX shells).
|
||||
- `--cmd cd` would replace the `cd` command.
|
||||
- `--hook <HOOK>`
|
||||
- Changes how often zoxide increments a directory's score:
|
||||
| Hook | Description |
|
||||
|
@ -53,7 +53,7 @@ def --env __zoxide_z [...rest:string] {
|
||||
}
|
||||
|
||||
# Jump to a directory using interactive search.
|
||||
def --env __zoxide_zi [...rest:string] {
|
||||
def --env __zoxide_zi [...rest:string] {
|
||||
cd $'(zoxide query --interactive -- ...$rest | str trim -r -c "\n")'
|
||||
{%- if echo %}
|
||||
echo $env.PWD
|
||||
|
Loading…
Reference in New Issue
Block a user