Fix omarchy-theme-set-vscode to only remove theme instead of the complete line (#2523)

This commit is contained in:
Vaibhav Verma
2025-10-18 15:46:27 +05:30
committed by GitHub
parent c24c1f1c5a
commit e03193eea4

View File

@@ -41,7 +41,7 @@ if omarchy-cmd-present "$EDITOR_CMD" && [[ ! -f "$SKIP_FLAG" ]]; then
else
# Remove theme from settings.json when the theme doesn't have $EDITOR_NAME support
if [[ -f "$SETTINGS_PATH" ]]; then
sed -i --follow-symlinks -E '/"workbench\.colorTheme"[[:space:]]*:[^,}]*,?/d' "$SETTINGS_PATH"
sed -i --follow-symlinks -E 's/\"workbench\.colorTheme\"[[:space:]]*:[^,}]*,?//' "$SETTINGS_PATH"
fi
fi
fi