mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
Merge pull request #2450 from namelessmonarch0/fix-starship-config-path
fix(theming): check nested starship config path before fallback
This commit is contained in:
@@ -535,8 +535,13 @@ zathura)
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
starship)
|
starship)
|
||||||
PALETTE_FILE="$HOME/.cache/noctalia/starship-palette.toml"
|
# Check if the nested starship config exists first
|
||||||
CONFIG_FILE="$HOME/.config/starship.toml"
|
if [ -f "$HOME/.config/starship/starship.toml" ]; then
|
||||||
|
CONFIG_FILE="$HOME/.config/starship/starship.toml"
|
||||||
|
else
|
||||||
|
# Fallback to the default path
|
||||||
|
CONFIG_FILE="$HOME/.config/starship.toml"
|
||||||
|
fi
|
||||||
|
|
||||||
# Check if the generated palette file exists
|
# Check if the generated palette file exists
|
||||||
if [ ! -f "$PALETTE_FILE" ]; then
|
if [ ! -f "$PALETTE_FILE" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user