Ensure up-to-date local history file before sync

This commit is contained in:
Sage Vaillancourt 2024-03-08 19:19:54 -05:00
parent 4a529f742d
commit 3e26791ea3
1 changed files with 2 additions and 0 deletions

View File

@ -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 {