dotfiles/modules/programs/navi/cheats/reptyr.cheat

6 lines
244 B
Text

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