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 {