From 831fc5a45855492e7b4cb1efb138e4c1ed0f0c1d Mon Sep 17 00:00:00 2001 From: Italo Cunha Date: Fri, 7 Nov 2014 11:52:21 -0200 Subject: [PATCH] allow relative paths in @resurrect-dir this has been tested to work with set -g @resurrect-dir '.tmux/resu rrect' --- scripts/save.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/save.sh b/scripts/save.sh index ebfdd54..0a45cc9 100755 --- a/scripts/save.sh +++ b/scripts/save.sh @@ -131,10 +131,10 @@ dump_bash_history() { save_all() { local resurrect_file_path="$(resurrect_file_path)" mkdir -p "$(resurrect_dir)" - dump_panes > $resurrect_file_path - dump_windows >> $resurrect_file_path - dump_state >> $resurrect_file_path - ln -fs "$resurrect_file_path" "$(last_resurrect_file)" + 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 save_bash_history_option_on; then dump_bash_history fi