TMUX

link

Setup

sudo add-apt-repository ppa:pi-rho/dev
sudo apt-get update
sudo apt-get install tmux

Commands

# --- справка
man tmux
# --- подключиться к tmux или создать новый
tmux attach || tmux new
# --- список сессий
tmux ls
# --- подключиться к заданной сессии, N - номер сессии
tmux attach -t N
# --- убить сессию
tmux kill-session -t N

Conf

~/.tmux.conf

# --- enable mouse scroll (it works with vim very bad)
set -g mouse on
# --- config terminal params (it help if vim color scheme does not work)
set -g default-terminal "xterm-256color"

Tmux Plugin Manager

https://github.com/tmux-plugins/tpm

git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
vim ~/.tmux.conf
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'

# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin 'github_username/plugin_name#branch'
# set -g @plugin 'git@github.com:user/plugin'
# set -g @plugin 'git@bitbucket.com:user/plugin'

# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'

Plugins

Tmux Better Mouse Mode