diff --git a/config/nushell/conf.d/zoxide.nu b/config/nushell/conf.d/zoxide.nu index ea59b14b..2382c520 100644 --- a/config/nushell/conf.d/zoxide.nu +++ b/config/nushell/conf.d/zoxide.nu @@ -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")' } diff --git a/config/nushell/config.nu b/config/nushell/config.nu index e0e09516..687de614 100644 --- a/config/nushell/config.nu +++ b/config/nushell/config.nu @@ -212,9 +212,6 @@ $env.config = { rm: { always_trash: false # always act as if -t was given. Can be overridden with -p } - cd: { - # abbreviations: false # allows `cd s/o/f` to expand to `cd some/other/folder` - } table: { mode: rounded # basic, compact, compact_double, light, thin, with_love, rounded, reinforced, heavy, none, other index_mode: always # "always" show indexes, "never" show indexes, "auto" = show indexes when a table has "index" column