User Tools

Site Tools


applications:terminals:tmux:notes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

applications:terminals:tmux:notes [2021/01/10 02:37] – Created with headline "Open tmux with several windows with applications". basapplications:terminals:tmux:notes [2026/09/20 12:00] (current) – Added the headline "Start tmux with several windows with commands by default". bas
Line 18: Line 18:
   * [[https://stackoverflow.com/questions/5609192/how-to-set-up-tmux-so-that-it-starts-up-with-specified-windows-opened|Stack Overflow - How to set up tmux so that it starts up with specified windows opened?]]      * [[https://stackoverflow.com/questions/5609192/how-to-set-up-tmux-so-that-it-starts-up-with-specified-windows-opened|Stack Overflow - How to set up tmux so that it starts up with specified windows opened?]]   
   * [[https://stackoverflow.com/questions/8537149/how-to-start-tmux-with-several-windows-in-different-directories|Stack Overflow - How to start tmux with several windows in different directories?]]   * [[https://stackoverflow.com/questions/8537149/how-to-start-tmux-with-several-windows-in-different-directories|Stack Overflow - How to start tmux with several windows in different directories?]]
 +
 +
 +=====Start tmux with several windows with commands by default=====
 +
 +Store the below in your ~/.tmux.conf:
 +
 +<code>
 +# Override the default-client-command to 'attach' so it attaches to the session we are about to start (instead of a session after that).
 +# default-client-command does not exist in all tmux version. It works on OpenBSD, but not on Devuan 6.0.0
 +set-option -g default-client-command attach
 +# Don't kill windows on exit of the command that's running in them.
 +# Then you can use C-b-: and :respawn-window to restart the window with the command.
 +set-option -g remain-on-exit on
 +new-session -s DEFAULT top
 +new-window radeontop
 +new-window
 +new-window mc
 +new-window
 +</code>
  
  
applications/terminals/tmux/notes.txt · Last modified: by bas

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki