diff --git a/resurrect_auto.tmux b/resurrect_auto.tmux index 5f56a30..2c1143a 100755 --- a/resurrect_auto.tmux +++ b/resurrect_auto.tmux @@ -8,6 +8,10 @@ source "$CURRENT_DIR/scripts/shared.sh" save_command_interpolation="#($CURRENT_DIR/scripts/resurrect_auto_save.sh)" +supported_tmux_version_ok() { + $CURRENT_DIR/scripts/check_tmux_version.sh "$SUPPORTED_VERSION" +} + add_resurrect_save_interpolation() { local status_right_value="$(get_tmux_option "status-right" "")" local new_value="${save_command_interpolation}${status_right_value}" diff --git a/scripts/resurrect_auto_save.sh b/scripts/resurrect_auto_save.sh index d8255b3..850241b 100755 --- a/scripts/resurrect_auto_save.sh +++ b/scripts/resurrect_auto_save.sh @@ -6,6 +6,10 @@ source "$CURRENT_DIR/helpers.sh" source "$CURRENT_DIR/variables.sh" source "$CURRENT_DIR/shared.sh" +supported_tmux_version_ok() { + $CURRENT_DIR/check_tmux_version.sh "$SUPPORTED_VERSION" +} + get_interval() { get_tmux_option "$auto_save_interval_option" "$auto_save_interval_default" } diff --git a/scripts/shared.sh b/scripts/shared.sh index 18858be..5ac8885 100644 --- a/scripts/shared.sh +++ b/scripts/shared.sh @@ -5,7 +5,3 @@ current_timestamp() { set_last_save_timestamp() { set_tmux_option "$last_auto_save_option" "$(current_timestamp)" } - -supported_tmux_version_ok() { - $CURRENT_DIR/check_tmux_version.sh "$SUPPORTED_VERSION" -}