diff options
author | Russ Cox <rsc@swtch.com> | 2020-01-13 11:04:53 -0500 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2020-01-13 11:11:14 -0500 |
commit | fa7fecff33769e27653a51d1d15909d2b538194b (patch) | |
tree | f4af3acc6eee66160f5d839302e32b4888ba85b3 /bin/wintext | |
parent | cc48e73a96c863784fb0bc46e69bccf509890827 (diff) | |
download | plan9port-fa7fecff33769e27653a51d1d15909d2b538194b.tar.gz plan9port-fa7fecff33769e27653a51d1d15909d2b538194b.tar.bz2 plan9port-fa7fecff33769e27653a51d1d15909d2b538194b.zip |
wintext: add tmux support, use in ", ""
Fixes #223.
Diffstat (limited to 'bin/wintext')
-rwxr-xr-x | bin/wintext | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/wintext b/bin/wintext index 93fe40ea..80a89957 100755 --- a/bin/wintext +++ b/bin/wintext @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash case "$winid" in [0-9]*) @@ -12,5 +12,11 @@ unix!*) exit 0 esac +case "$TMUX" in +?*) + tmux capture-pane -p + exit 0 +esac + echo 'no running window found' 2>&1 exit 1 |