File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -17,22 +17,13 @@ stop_pipe_pane() {
1717 display_message " Ended logging to $logging_full_filename "
1818}
1919
20- # returns a string unique to current pane
21- pane_unique_id () {
22- tmux display-message -p " #{session_name}_#{window_index}_#{pane_index}"
23- }
24-
2520# saving 'logging' 'not logging' status in a variable unique to pane
2621set_logging_variable () {
27- local value=" $1 "
28- local pane_unique_id=" $( pane_unique_id) "
29- tmux set-option -gq " @${pane_unique_id} " " $value "
22+ tmux set-option -pq @logging-variable " $1 "
3023}
3124
3225get_logging_variable () {
33- local pane_unique_id=" $( pane_unique_id) "
34- local current_pane_logging=" $( get_tmux_option " @${pane_unique_id} " " not logging" ) "
35- echo $current_pane_logging
26+ tmux show-option -pqv @logging-variable
3627}
3728
3829# this function checks if logging is happening for the current pane
You can’t perform that action at this time.
0 commit comments