Skip to content

Commit cba5bab

Browse files
authored
Merge pull request #2450 from namelessmonarch0/fix-starship-config-path
fix(theming): check nested starship config path before fallback
2 parents 95f56e1 + e8418c3 commit cba5bab

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

Scripts/bash/template-apply.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -535,8 +535,13 @@ zathura)
535535
;;
536536

537537
starship)
538-
PALETTE_FILE="$HOME/.cache/noctalia/starship-palette.toml"
539-
CONFIG_FILE="$HOME/.config/starship.toml"
538+
# Check if the nested starship config exists first
539+
if [ -f "$HOME/.config/starship/starship.toml" ]; then
540+
CONFIG_FILE="$HOME/.config/starship/starship.toml"
541+
else
542+
# Fallback to the default path
543+
CONFIG_FILE="$HOME/.config/starship.toml"
544+
fi
540545

541546
# Check if the generated palette file exists
542547
if [ ! -f "$PALETTE_FILE" ]; then

0 commit comments

Comments
 (0)