nushell helix

This commit is contained in:
2026-02-02 20:18:50 +08:00
parent 0bb8f0e5e8
commit 0f9b528471
3 changed files with 36 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
export def --env "pj starship config" [name: string] {
if (which ^starship | is-empty) {
echo "starship is not installed." | warn
echo "starship is not installed."
return
}
$env.starship_config = ($env.NU_POLYJUICE_PATH | path join ".." "starship" $"starship_($name).toml")
@@ -8,7 +8,7 @@ export def --env "pj starship config" [name: string] {
export def --env "pj starship list" [] {
if (which ^starship | is-empty) {
echo "starship is not installed." | warn
echo "starship is not installed."
return
}
ls ($env.NU_POLYJUICE_PATH | path join ".." "starship") -s | get name | parse -r '^(starship_(?<name>.*).toml)$' | get name