mirror of
https://github.com/tmux-plugins/tmux-continuum.git
synced 2024-11-21 18:58:46 +00:00
Merge pull request #41 from neynt/master
Make user systemd dir if it doesn't exist
This commit is contained in:
commit
90f4a00c41
@ -49,6 +49,7 @@ main() {
|
|||||||
local systemd_tmux_server_start_cmd="$(get_tmux_option "${systemd_tmux_server_start_cmd_option}" "${systemd_tmux_server_start_cmd_default}" )"
|
local systemd_tmux_server_start_cmd="$(get_tmux_option "${systemd_tmux_server_start_cmd_option}" "${systemd_tmux_server_start_cmd_default}" )"
|
||||||
local tmux_start_script_path="${CURRENT_DIR}/linux_start_tmux.sh"
|
local tmux_start_script_path="${CURRENT_DIR}/linux_start_tmux.sh"
|
||||||
local systemd_unit_file=$(template "${tmux_start_script_path}" "${options}")
|
local systemd_unit_file=$(template "${tmux_start_script_path}" "${options}")
|
||||||
|
mkdir -p "$(dirname ${systemd_unit_file_path})"
|
||||||
echo "$systemd_unit_file" > "${systemd_unit_file_path}"
|
echo "$systemd_unit_file" > "${systemd_unit_file_path}"
|
||||||
enable_tmux_unit_on_boot
|
enable_tmux_unit_on_boot
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user