From 3e26791ea3528c2a10f0a154cedbeb32d351e973 Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Fri, 8 Mar 2024 19:19:54 -0500 Subject: [PATCH] Ensure up-to-date local history file before sync --- fake_home/.zshrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fake_home/.zshrc b/fake_home/.zshrc index 88236b6..baa54e1 100644 --- a/fake_home/.zshrc +++ b/fake_home/.zshrc @@ -140,9 +140,11 @@ function sync-history { scp -P 11275 "$HOME/.histfile" 'sage@sagev.space:~/histfile' return fi + fc -W # Write to history file merge-hist "$HOME/.histfile" "$HOME/.tmp/.histfile" > "$HOME/.tmp/$(whoami).histfile" mv "$HOME/.tmp/$(whoami).histfile" "$HOME/.histfile" scp -P 11275 "$HOME/.histfile" 'sage@sagev.space:~/histfile' + fc -R # Read from new history file } function load-extensions {