mirror of
https://github.com/LukeHagar/omarchy.git
synced 2025-12-09 20:47:48 +00:00
Fix omarchy-theme-set-vscode to only remove theme instead of the complete line (#2523)
This commit is contained in:
@@ -41,7 +41,7 @@ if omarchy-cmd-present "$EDITOR_CMD" && [[ ! -f "$SKIP_FLAG" ]]; then
|
|||||||
else
|
else
|
||||||
# Remove theme from settings.json when the theme doesn't have $EDITOR_NAME support
|
# Remove theme from settings.json when the theme doesn't have $EDITOR_NAME support
|
||||||
if [[ -f "$SETTINGS_PATH" ]]; then
|
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
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user