nushell helix
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user