[feat] Update nushell files

This commit is contained in:
Uttarayan
2023-12-18 10:05:33 +05:30
parent 7448fa574b
commit 10ebcc0a6c
2 changed files with 2 additions and 5 deletions

View File

@@ -23,7 +23,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
@@ -34,7 +34,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")'
}