Skip to content

Commit 41fd8a9

Browse files
author
Bruno Sutic
committed
Small refactor
1 parent ac30255 commit 41fd8a9

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

scripts/variables.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,26 @@ default_save_complete_history_key="M-P" # Alt-Shift-p
1414
clear_history_key_option="@clear-history-key"
1515
default_clear_history_key="M-c" # Alt-c
1616

17+
# General options
18+
filename_suffix="#{session_name}-#{window_index}-#{pane_index}-%Y%m%dT%H%M%S.log"
19+
1720
# Logging options
1821
logging_path_option="@logging-path"
1922
default_logging_path="$HOME"
2023

2124
logging_filename_option="@logging-filename"
22-
default_logging_filename="tmux-#{session_name}-#{window_index}-#{pane_index}-%Y%m%dT%H%M%S.log"
25+
default_logging_filename="tmux-${filename_suffix}"
2326

2427
# Screen capture options
2528
screen_capture_path_option="@screen-capture-path"
2629
default_screen_capture_path="$HOME"
2730

2831
screen_capture_filename_option="@screen-capture-filename"
29-
default_screen_capture_filename="tmux-screen-capture-#{session_name}-#{window_index}-#{pane_index}-%Y%m%dT%H%M%S.log"
32+
default_screen_capture_filename="tmux-screen-capture-${filename_suffix}"
3033

3134
# Save complete history options
3235
save_complete_history_path_option="@save-complete-history-path"
3336
default_save_complete_history_path="$HOME"
3437

3538
save_complete_history_filename_option="@save-complete-history-filename"
36-
default_save_complete_history_filename="tmux-history-#{session_name}-#{window_index}-#{pane_index}-%Y%m%dT%H%M%S.log"
39+
default_save_complete_history_filename="tmux-history-${filename_suffix}"

0 commit comments

Comments
 (0)