diff --git a/setup.sh b/setup.sh index abf7a7c4..a62312d7 100644 --- a/setup.sh +++ b/setup.sh @@ -69,14 +69,14 @@ overwrite_starship_toml() { if [ -f "./terminal/starship.toml" ]; then echo "Overwriting starship.toml..." mkdir -p ~/.config/starship - cp ./terminal/starship.toml ~/.config/starship/starship.toml + cp ./terminal/starship.toml ~/.config/starship.toml # Check if icon parameter is provided if [ ! -z "$icon" ]; then 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\icon = \"$escaped_icon\"" ~/.config/starship/starship.toml + sed -i "5i\icon = \"$escaped_icon\"" ~/.config/starship.toml fi else