M
M
Maxim2015-08-27 20:36:30
vim
Maxim, 2015-08-27 20:36:30

Is it possible in tmux to stop processes when closing a session?

The process of work I have is in 4 windows. Vim, tests and 2 servers. Is it possible to make it so that when the session stops, the servers and tests stop?
It’s just that I have 2 such projects and in the evening, when I need to rest, I don’t need all the hanging processes.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Yamschikov, 2015-08-31
@mobilesfinks

  1. We put vlock
  2. Add to the ~/.tmux.conf config:
set -g lock-command "vlock"
set -g lock-after-time 90
set -g lock-server on

check with the command: tmux lock-server
Inactive tabs are locked after 90 seconds (set your own value)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question