Ubuntu의 기본 Repository에도 포함되어 있긴한데, 소스 빌드가 좀더 최신 버전 (기능 개선)

일단 빌드에 필요한 패키지들 설치

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

다운로드하고 설치...

$ cd ~/Downloads
$ wget <https://github.com/tmux/tmux/releases/download/3.1b/tmux-3.1b.tar.gz>
$ tar zxf tmux-3.1b.tar.gz
$ cd tmux-3.1b
$ ./configure
$ make -j8
$ sudo make install

설치가 완료된 후, tmux plugin manager 설치

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

tmux 환경설정 변수를 생성하고 설정

$ 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'

터미널 실행할 때 자동으로 실행하려면?

Terminal > Preferences > [Your Profiles] > Command

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/863e149f-a084-4390-90ed-4f7818c131dc/Untitled.png


간단한 사용법 정리