aboutsummaryrefslogtreecommitdiff
path: root/bin/tmux-send
diff options
context:
space:
mode:
Diffstat (limited to 'bin/tmux-send')
-rwxr-xr-xbin/tmux-send2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/tmux-send b/bin/tmux-send
index 47a6de8..a1911f3 100755
--- a/bin/tmux-send
+++ b/bin/tmux-send
@@ -2,7 +2,7 @@
dir=$1
tty=$(tmux list-panes -F "#{pane_active}#{pane_tty}" | grep '^1' | cut -c2-)
-vim=$(ps -o stat=,command= -t $tty | awk 'BEGIN{flag=0} {if($1 ~ /S*+/ && $2 ~ /nvim/){flag +=1}}; END {print flag}')
+vim=$(ps -o stat=,command= -t $tty | awk 'BEGIN{flag=0} {if($1 ~ /S[a-z]*+/ && $2 ~ /nvim/){flag +=1}}; END {print flag}')
if [ $vim -gt 0 ]; then
case $dir in