How do I disconnect all other users in tmux?

You can use <prefix> D (where prefix is C-b by default), to chose which clients to detach; it will also list they col/lines as well as the last used time. Note the uppercase D, i.e. Shift+d. You could also use tmux’s detach-client option detach-client [-P] [-a] [-s target-session] [-t target-client] (alias: detach) Detach the current … Read more

lose vim colorscheme in tmux mode

I had the same problem. Only difference was I am using solarize rather then molokai. To fix the issue, I have set up an alias in ~/.bashrc: alias tmux=”TERM=screen-256color-bce tmux” And set up the default-terminal option in ~/.tmux.conf: set -g default-terminal “xterm” Lastly, do $ source ~/.bashrc to load new alias.

“tmux set -g mouse-mode on” not scrolling

So this option has been renamed in version 2.1 (18 October 2015) From the changelog: Mouse-mode has been rewritten. There’s now no longer options for: – mouse-resize-pane – mouse-select-pane – mouse-select-window – mode-mouse Instead there is just one option: ‘mouse’ which turns on mouse support So this is what I’m using now in my .tmux.conf … Read more

How do I set tmux to open specified windows at startup?

You can write a small shell script that launches tmux with the required programs. I have the following in a shell script that I call dev-tmux. A dev environment: #!/bin/sh tmux new-session -d ‘vim’ tmux split-window -v ‘ipython’ tmux split-window -h tmux new-window ‘mutt’ tmux -2 attach-session -d So everytime I want to launch my … Read more