diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2021-04-22 09:48:30 -0700 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2021-04-22 09:48:30 -0700 |
commit | 4bee1c911c0a710da47b62a31e84535d2e0b7c76 (patch) | |
tree | 05e86e31bfa55eebeb8b698e5e56590c66ab34ac /bin/tmux-send | |
parent | 1f312a24606b09cf1a41aa79946b1963a242f648 (diff) |
chore(organize): restructured build to allow for parallel projects to sys functionality
Diffstat (limited to 'bin/tmux-send')
-rwxr-xr-x | bin/tmux-send | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/tmux-send b/bin/tmux-send index 47a6de8..b2e7fd4 100755 --- a/bin/tmux-send +++ b/bin/tmux-send @@ -4,6 +4,10 @@ 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}') +echo $dir +echo $tty +echo $vim + if [ $vim -gt 0 ]; then case $dir in up) |