mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
better wezterm template escaping
This commit is contained in:
@@ -131,7 +131,7 @@ wezterm)
|
||||
# It doesn't exist, so we add it before the 'return config' line.
|
||||
if grep -q '^\s*return\s*config' "$CONFIG_FILE"; then
|
||||
# 'return config' exists. Insert the line before it.
|
||||
sed -i "/^\s*return\s*config/i\\$WEZTERM_SCHEME_LINE" "$CONFIG_FILE"
|
||||
sed -i '/^\s*return\s*config/i\'"$WEZTERM_SCHEME_LINE" "$CONFIG_FILE"
|
||||
else
|
||||
# This is a problem. We can't find the insertion point.
|
||||
echo "Warning: 'config.color_scheme' not set and 'return config' line not found." >&2
|
||||
|
||||
Reference in New Issue
Block a user