History merge note

This commit is contained in:
Sage Vaillancourt 2024-07-21 12:19:10 -04:00
parent 04614599f5
commit dd6caf8f53
1 changed files with 1 additions and 0 deletions

View File

@ -154,6 +154,7 @@ function sync-history {
scp -P 11275 "$HOME/.histfile" 'sage@sagev.space:~/histfile' scp -P 11275 "$HOME/.histfile" 'sage@sagev.space:~/histfile'
return return
fi fi
echo "Merging history files..."
fc -W # Write to history file fc -W # Write to history file
merge-hist "$HOME/.histfile" "$HOME/.tmp/.histfile" > "$HOME/.tmp/$(whoami).histfile" merge-hist "$HOME/.histfile" "$HOME/.tmp/.histfile" > "$HOME/.tmp/$(whoami).histfile"
mv "$HOME/.tmp/$(whoami).histfile" "$HOME/.histfile" mv "$HOME/.tmp/$(whoami).histfile" "$HOME/.histfile"