tmux 의 아래 줄이 customizable 한 status 바고 세션 이름, window 리스트, 시간, 시스템 정보 — 계산할 수 있는 뭐든 — 보여줘. 기본은 기능적; 몇 줄 config 로 informative 하고 예뻐져.
Status 바 primitive
status-position — 위 또는 아래.
status-style — 바 배경과 기본 foreground 컬러.
status-left / status-right — 왼/오 끝에 렌더링되는 문자열.
window-status-format / window-status-current-format — 각 window 탭의 모양.
pane-border-style / pane-active-border-style — pane 사이 보더 컬러.
이 문자열 안에 #{var} 로 변수 interpolate, #(cmd) 로 셸 명령 실행. 흔한 거: #S (세션 이름), #I (window 인덱스), #W (window 이름), #H (호스트), #(date +%H:%M) (시계).
TPM — Tmux Plugin Manager
TPM 이 tmux 의 사실상 plugin 매니저. 한 번 install, ~/.tmux.conf 에 plugin 선언, prefix + I 로 install, prefix + U 로 update. Plugin 생태계 작지만 그 안의 모든 plugin 이 진짜 문제 풀어.
즉시 install 가치 있는 네 plugin
tmux-plugins/tpm — 매니저 자체. 필수.
tmux-plugins/tmux-sensible — 모두가 동의하는 몇 기본 박음 (history-limit, escape-time, focus-events). 이미 설정한 거랑 중복이지만 무해하고 많은 config 가 가정하는 컨벤션.
tmux-plugins/tmux-resurrect — 재부팅 사이 tmux 세션 저장과 복원. prefix + Ctrl-s 로 저장, prefix + Ctrl-r 로 복원. 복원된 세션이 같은 window, pane, working dir, (옵션) 돌고 있는 프로그램 가져.
tmux-plugins/tmux-continuum — 매 15 분 자동 저장 (tmux-resurrect 사용). continuum-restore on 으로 tmux 가 시작 시 마지막 세션 자동 복원.
Resurrect + Continuum = 재부팅 너머 영속성. 이거 없으면 재부팅이 tmux 상태 잃음. 함께면 워크스페이스가 재부팅, OS 업그레이드, 새 머신으로 이동까지 (홈 디렉토리 옮기면) 살아남아. 이 조합이 사람들이 tmux 가 "영원" 이라고 할 때 의미하는 거.
클립보드 통합
기본으로 tmux 의 복사가 tmux 의 내부 buffer 로만 가. 다른 앱이 paste 할 수 있게 시스템 클립보드에 떨어뜨리려면 copy-mode y 키를 pbcopy (macOS), xclip (Linux X11), 또는 wl-copy (Wayland) 통해 파이프하게 바인드. tmux-yank plugin 이 플랫폼 사이 자동화.
Code
Status 바 스타일링 — 깔끔한 다크 스킴·tmux
# 위치
set -g status-position bottom
# 컬러 (GitHub Dark 풍)
set -g status-style "bg=#161b22,fg=#8b949e"
set -g status-left "#[fg=#019833,bold] #S "
set -g status-right "#[fg=#8b949e] %Y-%m-%d %H:%M "
set -g status-left-length 40
set -g status-right-length 40
# Window 탭
setw -g window-status-format " #I:#W "
setw -g window-status-current-format "#[fg=#e6edf3,bg=#30363d,bold] #I:#W "
# Pane 보더
set -g pane-border-style "fg=#30363d"
set -g pane-active-border-style "fg=#019833"
# 활동 하이라이트
setw -g monitor-activity on
set -g visual-activity off
# ───────────── Plugin ─────────────
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'tmux-plugins/tmux-yank'
# Resurrect 트윅
set -g @resurrect-capture-pane-contents 'on'
set -g @resurrect-strategy-vim 'session'
set -g @resurrect-strategy-nvim 'session'
# Continuum 트윅
set -g @continuum-restore 'on'
set -g @continuum-save-interval '15'
# 이 줄이 마지막이어야 함
run '~/.tmux/plugins/tpm/tpm'
TPM 키 바인딩·text
prefix + I .tmux.conf 에 리스트된 plugin install
prefix + U 설치된 plugin update
prefix + alt + u .tmux.conf 에 없는 plugin uninstall
플랫폼별 클립보드 yank (tmux-yank 쓰면 skip)·tmux
# macOS
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy"
# Linux X11
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xclip -sel clip -i"
# Linux Wayland
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "wl-copy"
TPM install (위 git clone). Plugin 블록을 ~/.tmux.conf 에 추가. prefix + r 로 reload. prefix + I 로 install. 검증: (1) prefix + Ctrl-s 가 저장 메시지 표시, (2) 머신 재부팅 (또는 tmux kill-server), tmux 다시 시작 — continuum-restore 가 이전 세션 가져와야 함, (3) copy mode 의 텍스트 yank 후 다른 앱에서 paste 해서 클립보드 통합 작동 확인.
Progress
Progress is local-only — sign in to sync across devices.