mirror of
https://github.com/tmux-plugins/tmux-continuum.git
synced 2024-11-21 18:58:46 +00:00
enable user to set the path of tmux-resurrect's save.sh.
replace the hard-coded path by a more elegant one.
This commit is contained in:
parent
3845e73f94
commit
4c84c4062f
@ -10,6 +10,7 @@ template() {
|
|||||||
shift
|
shift
|
||||||
local options="$@"
|
local options="$@"
|
||||||
local content=""
|
local content=""
|
||||||
|
local resurrect_save_script_path="$(get_tmux_option "$resurrect_save_path_option" "$(realpath ${CURRENT_DIR}/../../../tmux-resurrect/scripts/save.sh)")"
|
||||||
|
|
||||||
read -r -d '' content <<-EOF
|
read -r -d '' content <<-EOF
|
||||||
[Unit]
|
[Unit]
|
||||||
@ -21,7 +22,7 @@ template() {
|
|||||||
Environment=DISPLAY=:0
|
Environment=DISPLAY=:0
|
||||||
ExecStart=/usr/bin/tmux ${systemd_tmux_server_start_cmd}
|
ExecStart=/usr/bin/tmux ${systemd_tmux_server_start_cmd}
|
||||||
|
|
||||||
ExecStop=${HOME}/.tmux/plugins/tmux-resurrect/scripts/save.sh
|
ExecStop=${resurrect_save_script_path}
|
||||||
ExecStop=/usr/bin/tmux kill-server
|
ExecStop=/usr/bin/tmux kill-server
|
||||||
KillMode=none
|
KillMode=none
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user