| twintext - plan9port - [fork] Plan 9 from user space | |
| git clone git://src.adamsgaard.dk/plan9port | |
| Log | |
| Files | |
| Refs | |
| README | |
| LICENSE | |
| --- | |
| twintext (250B) | |
| --- | |
| 1 #!/usr/local/plan9/bin/rc | |
| 2 | |
| 3 if(~ $winid [0-9]*) { | |
| 4 9p read acme/$winid/body | |
| 5 exit 0 | |
| 6 } | |
| 7 if(~ $text9term 'unix!'*) { | |
| 8 dial -e $text9term < /dev/null | |
| 9 exit 0 | |
| 10 } | |
| 11 if(~ $TMUX ?*) { | |
| 12 tmux capture-pane -p | |
| 13 exit 0 | |
| 14 } | |
| 15 | |
| 16 echo 'no running window found' >[2=1] | |
| 17 exit 1 |