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

7 lines
247 B
Plaintext
Raw Normal View History

2023-04-25 19:50:28 +02:00
% tmux, reptyr
# send background process to tmux
2023-04-26 14:29:11 +02:00
bg <process> && disown <process> && tmux new -d "$SHELL -c 'reptyr <process>'"
2023-04-25 19:50:28 +02:00
$ process: ps x -eo pid,tty,stat | awk '$2 ~ /pts/' | awk '$3 ~ /T/' | cut -d" " -f1 --- --preview "ps -p {} -o cmd"