feat(programs): add navi

This commit is contained in:
Moritz Böhme 2023-04-25 19:50:28 +02:00
parent 52650a3c84
commit af1f1fec2e
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9
4 changed files with 29 additions and 1 deletions

View file

@ -0,0 +1,6 @@
% 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"