tmux

tmux 다운로드: https://github.com/tmux/tmux/wiki 현재 최신버전은 3.0a

필요한 패키지 설치

$ sudo apt install libevent-dev libcurses-ocaml-dev

압축 해제 및 빌드

$ tar zxf tmux-3.0a.tar.gz
$ cd tmux-3.0a
$ ./configure
$ make -j8
$ sudo make install

tmux plugin manager 설치

$ git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm

tmux option 설정

$ vi ~/.tmux.conf
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'

set -g mouse on
set -g destroy-unattached on
setw -g monitor-activity on
set -g visual-activity on
set -g default-terminal "screen-256color"
set -g history-limit 30000

set -g base-index 1
set -g pane-base-index 1

# Pane splitting.
bind \\ split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
bind r source-file ~/.tmux.conf \; display "Reloaded ~/.tmux.conf"

run '~/.tmux/plugins/tpm/tpm'

터미널을 실행할 때 자동으로 tmux를 실행하게 하려면, Terminal > Preferences > Profiles

와 같이 추가하고 창 닫기.

다시 터미널을 실행하면,

와 같이 자동으로 tmux가 실행됨.