Update nushell.txt to fit nushell
Change the `def-env` to `def --env` to fit the nushell v8.8, because the `def-env` is deprecated and be removed in v8.8
This commit is contained in:
parent
073500cbdf
commit
ec7e104363
|
|
@ -39,7 +39,7 @@ if (not ($env | default false __zoxide_hooked | get __zoxide_hooked)) {
|
|||
#
|
||||
|
||||
# Jump to a directory using only keywords.
|
||||
def-env __zoxide_z [...rest:string] {
|
||||
def --env __zoxide_z [...rest:string] {
|
||||
let arg0 = ($rest | append '~').0
|
||||
let path = if (($rest | length) <= 1) and ($arg0 == '-' or ($arg0 | path expand | path type) == dir) {
|
||||
$arg0
|
||||
|
|
@ -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