Skip to content

Commit a9cbf68

Browse files
petechesBruno Sutic
authored andcommitted
Added defaults for tmux start command variable.
1 parent 05a4a82 commit a9cbf68

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

scripts/handle_tmux_automatic_start/systemd_enable.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ enable_tmux_unit_on_boot() {
4848

4949
main() {
5050
local options="$(get_tmux_option "$auto_start_config_option" "${auto_start_config_default}")"
51-
local systemd_tmux_server_start_cmd="$(get_tmux_option "${systemd_tmux_server_start_cmd}" "${systemd_tmux_default_server_start_cmd}" )"
51+
local systemd_tmux_server_start_cmd="$(get_tmux_option "${systemd_tmux_server_start_cmd_option}" "${systemd_tmux_server_start_cmd_default}" )"
5252
local tmux_start_script_path="${CURRENT_DIR}/linux_start_tmux.sh"
5353
local systemd_unit_file=$(template "${tmux_start_script_path}" "${options}")
5454
echo "$systemd_unit_file" > "${systemd_unit_file_path}"

scripts/variables.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,6 @@ status_wrap_string="\#{value}"
3535

3636
systemd_service_name="tmux.service"
3737
systemd_unit_file_path="$HOME/.config/systemd/user/${systemd_service_name}"
38+
39+
systemd_tmux_server_start_cmd_option="@systemd_tmux_server_start_cmd"
40+
systemd_tmux_server_start_cmd_default="start-server"

0 commit comments

Comments
 (0)