nushell config

This commit is contained in:
2026-01-30 16:48:11 +08:00
parent 165681a18e
commit 05b2a28b94
10 changed files with 246 additions and 56 deletions
-11
View File
@@ -1,11 +0,0 @@
export def --env config [name: string] {
$env.starship_config = ($env.NU_POLYJUICE_PATH | path join ".." "starship" $"starship_($name).toml")
}
export def --env init [] {
let starship_nushell_path = ($env.NU_POLYJUICE_AUTOLOAD_DIRS | path join "starship.nu")
if ($starship_nushell_path | path exists) {
rm $starship_nushell_path
}
starship init nu | save -f $starship_nushell_path
}