nushell support

This commit is contained in:
2026-01-29 15:34:58 +08:00
parent 87a837fdf5
commit 165681a18e
6 changed files with 63 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
export def --env init [] {
let zoxide_nushell_path = ($env.NU_POLYJUICE_AUTOLOAD_DIRS | path join "zoxide.nu")
if ($zoxide_nushell_path | path exists) {
rm $zoxide_nushell_path
}
zoxide init nushell --cmd z | save -f $zoxide_nushell_path
}