We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2854b2 commit 6455c71Copy full SHA for 6455c71
scripts/toggle_logging.sh
@@ -29,11 +29,15 @@ set_logging_variable() {
29
tmux set-option -gq "@${pane_unique_id}" "$value"
30
}
31
32
-# this function checks if logging is happening for the current pane
33
-is_logging() {
+get_logging_variable() {
34
local pane_unique_id="$(pane_unique_id)"
35
local current_pane_logging="$(get_tmux_option "@${pane_unique_id}" "not logging")"
36
- if [ "$current_pane_logging" == "logging" ]; then
+ echo $current_pane_logging
+}
37
+
38
+# this function checks if logging is happening for the current pane
39
+is_logging() {
40
+ if [ "$(get_logging_variable)" == "logging" ]; then
41
return 0
42
else
43
return 1
0 commit comments