Added defaults for tmux start command variable.

This commit is contained in:
Pete Peteches McCabe 2015-11-26 08:33:06 +00:00 committed by Bruno Sutic
parent 05a4a827e5
commit a9cbf68546
No known key found for this signature in database
GPG Key ID: CAFA7B1B2914ED81
2 changed files with 4 additions and 1 deletions

View File

@ -48,7 +48,7 @@ enable_tmux_unit_on_boot() {
main() { main() {
local options="$(get_tmux_option "$auto_start_config_option" "${auto_start_config_default}")" local options="$(get_tmux_option "$auto_start_config_option" "${auto_start_config_default}")"
local systemd_tmux_server_start_cmd="$(get_tmux_option "${systemd_tmux_server_start_cmd}" "${systemd_tmux_default_server_start_cmd}" )" 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}")
echo "$systemd_unit_file" > "${systemd_unit_file_path}" echo "$systemd_unit_file" > "${systemd_unit_file_path}"

View File

@ -35,3 +35,6 @@ status_wrap_string="\#{value}"
systemd_service_name="tmux.service" systemd_service_name="tmux.service"
systemd_unit_file_path="$HOME/.config/systemd/user/${systemd_service_name}" systemd_unit_file_path="$HOME/.config/systemd/user/${systemd_service_name}"
systemd_tmux_server_start_cmd_option="@systemd_tmux_server_start_cmd"
systemd_tmux_server_start_cmd_default="start-server"