mirror of
https://github.com/tmux-plugins/tmux-resurrect.git
synced 2025-09-02 12:47:04 +00:00
Change 'save pane contents' directory
This commit is contained in:
@ -87,9 +87,13 @@ last_resurrect_file() {
|
||||
echo "$(resurrect_dir)/last"
|
||||
}
|
||||
|
||||
pane_contents_dir() {
|
||||
echo "$(resurrect_dir)/pane_contents/"
|
||||
}
|
||||
|
||||
pane_contents_file() {
|
||||
local pane_id="$1"
|
||||
echo "$(resurrect_dir)/pane_contents-${pane_id}"
|
||||
echo "$(pane_contents_dir)/pane-${pane_id}"
|
||||
}
|
||||
|
||||
pane_contents_file_exists() {
|
||||
|
@ -259,6 +259,7 @@ save_all() {
|
||||
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
|
||||
fi
|
||||
if save_bash_history_option_on; then
|
||||
|
Reference in New Issue
Block a user