#!/bin/sh
tmux capture-pane -J -p -t $TMUX_PANE >/tmp/file.txt
vi /tmp/file.txt
You ind shedding more light on this? I can't get tmux to autostart on boot. I have used "tmuxonboot alias doas tmux new-session -s host" in ~/.cshrc and set up tmux_enable=YES in the /etc/rc.conf with a customscript in thr rc.d dir but no luck.#!/bin/sh
tmux capture-pane -J -p -t $TMUX_PANE >/tmp/file.txt
vi /tmp/file.txt