% tmux, reptyr # send background process to tmux bg && disown && tmux new -d "$SHELL -c 'reptyr '" $ process: ps x -eo pid,tty,stat | awk '$2 ~ /pts/' | awk '$3 ~ /T/' | cut -d" " -f1 --- --preview "ps -p {} -o cmd"