3 ms·
tmux. If a bell, or ctrl-g, is output on the terminal, the tmux status line will indicate this fact if you are viewing a different terminal. It will stay i
by akira2501 4y ago
tmux. If a bell, or ctrl-g, is output on the terminal, the tmux status line will indicate this fact if you are viewing a different terminal. It will stay indicating until you switch back to that terminal.
tmux will also show you the name of the command that's currently running, so if it's a make file or other script that finishes, you can observe that on it's own, but if you add an `echo -e "\007"` to the end of your script, you'll get the indicator.
- asdfman123 4y agoNice! I already use tmux. I’m not sure if the log file outputs anything like that though. There’s a way to hook into the build process and run commands after it completes. I’m guessing I might have to do that to get the status line wired in.
- lloeki 4y agothis is not tmux specific, basically every terminal out there would react to the bell char. e.g Terminal.app adds a bell icon to the tab, makes the dock icon bounce, and a badge on it. if you want to hack a bit and have a specific log line outputted yo the terminal you can stuff the bell char right in the string! one could also display notifications, there are more advanced CLI programs but here's a crude way: https://apple.stackexchange.com/questions/238814/send-notification-from-command-line#238820 https://apple.stackexchange.com/questions/238814/send-notifi... These things can also be done on Linux. A bit of web searching should give you ideas. I frequently use them with long running commands or fswatch.