Add bin/is-tmux-attached

This commit is contained in:
Henrik Lissner 2015-12-23 02:23:23 -05:00
parent 931f7488b5
commit 0f0e1b007c

3
bin/is-tmux-attached Executable file
View file

@ -0,0 +1,3 @@
#!/usr/bin/env bash
[[ $(tmux display-message -p "#{?session_attached,1,0}") == "1" ]]