Syntax highlighting of bcaf037 ~( tmux)
# TMUX [TOC] [link](https://www.sitepoint.com/tmux-a-simple-start/) ## Setup ```bash sudo add-apt-repository ppa:pi-rho/dev sudo apt-get update sudo apt-get install tmux ``` ## Commands ```bash # --- справка man tmux # --- подключиться к tmux или создать новый tmux attach || tmux new # --- список сессий tmux ls # --- подключиться к заданной сессии, N - номер сессии tmux attach -t N # --- убить сессию tmux kill-session -t N ``` ## Conf ~/.tmux.conf ```bash # --- 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 ```bash git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm vim ~/.tmux.conf ``` ```bash # 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](https://github.com/NHDaly/tmux-better-mouse-mode)
