From ce6ebd3d8d756afecf12eb45b31bfe486af5b203 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 6 Sep 2026 00:14:31 +0000 Subject: [PATCH] fix(installer): preserve history backup permissions Co-authored-by: robbyrussell <257+robbyrussell@users.noreply.github.com> --- tools/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/install.sh b/tools/install.sh index ef060791d..c9be54ddb 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -426,7 +426,7 @@ setup_zshrc() { exit 1 fi fi - if cp "$hist" "$hist_backup"; then + if cp -p "$hist" "$hist_backup"; then echo "${FMT_GREEN}Backing up your command history to ${hist_backup}${FMT_RESET}" hist_backed_up="$hist_backed_up $hist" else