mirror of
https://github.com/tmux-plugins/tmux-resurrect.git
synced 2025-09-01 20:16:59 +00:00
@ -98,11 +98,13 @@ pane_content_files_restore_from_archive() {
|
||||
resurrect_dir() {
|
||||
if [ -z "$_RESURRECT_DIR" ]; then
|
||||
local path="$(get_tmux_option "$resurrect_dir_option" "$default_resurrect_dir")"
|
||||
echo "${path/#\~/$HOME}" # expands tilde if used with @resurrect-dir
|
||||
# expands tilde, $HOME and $HOSTNAME if used in @resurrect-dir
|
||||
echo "$path" | sed "s,\$HOME,$HOME,g; s,\$HOSTNAME,$(hostname),g; s,\~,$HOME,g"
|
||||
else
|
||||
echo "$_RESURRECT_DIR"
|
||||
fi
|
||||
}
|
||||
_RESURRECT_DIR="$(resurrect_dir)"
|
||||
|
||||
resurrect_file_path() {
|
||||
if [ -z "$_RESURRECT_FILE_PATH" ]; then
|
||||
@ -112,6 +114,7 @@ resurrect_file_path() {
|
||||
echo "$_RESURRECT_FILE_PATH"
|
||||
fi
|
||||
}
|
||||
_RESURRECT_FILE_PATH="$(resurrect_file_path)"
|
||||
|
||||
last_resurrect_file() {
|
||||
echo "$(resurrect_dir)/last"
|
||||
|
Reference in New Issue
Block a user