From d9cfffa66148460d4620ce283ecf1de3ac593807 Mon Sep 17 00:00:00 2001 From: Bram Kelchtermans Date: Thu, 27 Jun 2024 22:40:57 +0200 Subject: [PATCH] refactor: Update starship.toml file path and fix icon parameter in setup.sh --- setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index 74c552a4..f7b540bf 100644 --- a/setup.sh +++ b/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