refactor: Update starship.toml file path and fix icon parameter in setup.sh
This commit is contained in:
parent
472f31351e
commit
34dbd2dfea
2
setup.sh
2
setup.sh
|
@ -66,7 +66,7 @@ overwrite_starship_toml() {
|
|||
echo "Adding icon [$icon](bg:color_purple fg:color_white) to starship.toml..."
|
||||
# Escape special characters in icon variable for sed
|
||||
escaped_icon=$(printf '%s\n' "$icon" | sed -e 's/[]\/$*.^[]/\\&/g')
|
||||
sed -i "5i\[$escaped_icon](fg:color_white bg:color_purple)\\" ~/.config/starship.toml
|
||||
sed -i "5i\[$escaped_icon](fg:color_white bg:color_purple) \\" ~/.config/starship.toml
|
||||
fi
|
||||
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue