diff --git a/bin/is-tmux-attached b/bin/is-tmux-attached new file mode 100755 index 00000000..44114018 --- /dev/null +++ b/bin/is-tmux-attached @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +[[ $(tmux display-message -p "#{?session_attached,1,0}") == "1" ]]