From 370b4861cb73b9d78ff150472e248e48f104785f Mon Sep 17 00:00:00 2001 From: Bruno Sutic Date: Wed, 25 Nov 2015 13:42:37 +0100 Subject: [PATCH] Revert "Symlink 'last' file at the end of successful save" This reverts commit 6750a88e74a4b5faabd74a89c756458b7bbed8b3. --- CHANGELOG.md | 1 - scripts/save.sh | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 26a69a5..bccbb7d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,7 +17,6 @@ - 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" diff --git a/scripts/save.sh b/scripts/save.sh index fa6fdef..d861ba5 100755 --- a/scripts/save.sh +++ b/scripts/save.sh @@ -259,6 +259,7 @@ 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 @@ -268,7 +269,6 @@ save_all() { if save_bash_history_option_on; then dump_bash_history fi - ln -fs "$(basename "$resurrect_file_path")" "$(last_resurrect_file)" } show_output() {