Created
August 8, 2016 10:05
-
-
Save bagonyi/629d916b13dda0e76665e12f6a30b3c5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/scripts/toggle_logging.sh b/scripts/toggle_logging.sh | |
index 9299973..baafad2 100755 | |
--- a/scripts/toggle_logging.sh | |
+++ b/scripts/toggle_logging.sh | |
@@ -13,11 +13,15 @@ get_filename() { | |
start_pipe_pane() { | |
local filename="$(get_filename)" | |
+ local window_name=$(tmux display -p "#W") | |
+ tmux rename-window "${window_name}<U+1F534>" | |
"$CURRENT_DIR/start_logging.sh" "$filename" | |
display_message "Started logging to $filename" | |
} | |
stop_pipe_pane() { | |
+ local window_name=$(tmux display -p "#W" | sed 's/<U+1F534>$//') | |
+ tmux rename-window "${window_name}" | |
tmux pipe-pane | |
display_message "Ended logging to $(get_filename)" | |
} |
Author
bagonyi
commented
Aug 8, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment