allow relative paths in @resurrect-dir

this has been tested to work with set -g @resurrect-dir '.tmux/resu rrect'
pull/56/head
Italo Cunha 2014-11-07 11:52:21 -02:00
parent 059686ab6c
commit 831fc5a458
1 changed files with 4 additions and 4 deletions

View File

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