From 0f0e1b007c13fe4264ee417cf569007e9a1440e3 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 23 Dec 2015 02:23:23 -0500 Subject: [PATCH] Add bin/is-tmux-attached --- bin/is-tmux-attached | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 bin/is-tmux-attached 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" ]]