aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xinstall.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/install.sh b/install.sh
index 85d8216..6fba4db 100755
--- a/install.sh
+++ b/install.sh
@@ -95,8 +95,11 @@ if [ -x "$waybar_repo/install.sh" ]; then
echo "waybar: its install.sh failed, bar left on the old colours" >&2
fi
-install -Dm644 "$repo/templates/terminal/kitty-theme.conf" \
- "$HOME/.config/kitty/current-theme.conf"
+# Written through, not replaced: current-theme.conf is a symlink into the
+# kitty-conf repo, and install -D would unlink it and leave a plain file behind.
+mkdir -p "$HOME/.config/kitty"
+cat "$repo/templates/terminal/kitty-theme.conf" \
+ > "$HOME/.config/kitty/current-theme.conf"
# Sublime Text. Copied into Packages/User, which Sublime watches, so writing it
# reaches a running editor. The file still carries @ACCENT@, which udt-accent