mirror of
				https://github.com/tmux-plugins/tmux-resurrect.git
				synced 2025-11-04 00:46:04 +00:00 
			
		
		
		
	allow relative paths in @resurrect-dir
this has been tested to work with set -g @resurrect-dir '.tmux/resu rrect'
This commit is contained in:
		@@ -131,10 +131,10 @@ dump_bash_history() {
 | 
				
			|||||||
save_all() {
 | 
					save_all() {
 | 
				
			||||||
	local resurrect_file_path="$(resurrect_file_path)"
 | 
						local resurrect_file_path="$(resurrect_file_path)"
 | 
				
			||||||
	mkdir -p "$(resurrect_dir)"
 | 
						mkdir -p "$(resurrect_dir)"
 | 
				
			||||||
	dump_panes   >  $resurrect_file_path
 | 
						dump_panes   >  "$resurrect_file_path"
 | 
				
			||||||
	dump_windows >> $resurrect_file_path
 | 
						dump_windows >> "$resurrect_file_path"
 | 
				
			||||||
	dump_state   >> $resurrect_file_path
 | 
						dump_state   >> "$resurrect_file_path"
 | 
				
			||||||
	ln -fs "$resurrect_file_path" "$(last_resurrect_file)"
 | 
						ln -fs "$(basename "$resurrect_file_path")" "$(last_resurrect_file)"
 | 
				
			||||||
	if save_bash_history_option_on; then
 | 
						if save_bash_history_option_on; then
 | 
				
			||||||
		dump_bash_history
 | 
							dump_bash_history
 | 
				
			||||||
	fi
 | 
						fi
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user