Symlink 'last' file at the end of successful save

This commit is contained in:
Bruno Sutic 2015-11-25 13:40:54 +01:00
parent 5f04ceabbc
commit 6750a88e74
No known key found for this signature in database
GPG Key ID: CAFA7B1B2914ED81
2 changed files with 2 additions and 1 deletions

View File

@ -17,6 +17,7 @@
- make archive & compress pane contents process more portable
- `mutt` added to the list of automatically restored programs
- added guide for migrating from tmuxinator
- symlink `last` file only after successful save
### v2.4.0, 2015-02-23
- add "tmux-test"

View File

@ -259,7 +259,6 @@ save_all() {
dump_panes >> "$resurrect_file_path"
dump_windows >> "$resurrect_file_path"
dump_state >> "$resurrect_file_path"
ln -fs "$(basename "$resurrect_file_path")" "$(last_resurrect_file)"
if capture_pane_contents_option_on; then
mkdir -p "$(pane_contents_dir)"
dump_pane_contents
@ -269,6 +268,7 @@ save_all() {
if save_bash_history_option_on; then
dump_bash_history
fi
ln -fs "$(basename "$resurrect_file_path")" "$(last_resurrect_file)"
}
show_output() {