# NOTE: https://github.com/tmux/tmux/issues/1384
function tmux_notify() {
if [[ "`tmux display -p '#{session_id}'`" != '$0' ]]; then
tmux display "#{session_id} #{window_id}"
fi
}
# TODO: ring bell every time a command finished, send to tmux
# (send escape sequence to tmux host? \Ptmux?)
# bell:
# command:
# program: /opt/homebrew/bin/tmux
# args: ["display", "Hello, World!"]