Skip to main content

Posts

Showing posts from 2026

tmux 설정

gnu screen를 약 20년간 사용해 왔다. 하지만 screen은 재시작할 때, 이전 창 사이즈 정보가 불러오지 못 해 putty를 실행할 때마다 다시 창 크기를 변경해야 하는 불편함이 있었다. 그래서 알아보니 tmux 라는 새로운 프로그램을 알게 됐다. 그리고 tmux는 pane이라는 새로운 개념을 도입해서 창 내부에서 분할 창(pane)를 조정할 수 있어서, screen보다 UX/UI 적으로 더 편한 것 같다. 앞으로는 tmux를 사용해야 겠다. 아래는 나의 ~/.tmux.conf 파일 내용이다. #set -g mouse on set -g history-limit 10000 set -g status on set -g status-position bottom set -g status-interval 1 set -g base-index 1 setw -g pane-base-index 1 set -g default-terminal "screen-256color" bind r source-file ~/.tmux.conf \; display-message "tmux.conf reloaded" # 상태줄 기본 set -g status on set -g status-position bottom set -g status-interval 1 #set -g status-style fg=white,bg=black # 왼쪽 -> 호스트명 set -g status-left '#[fg=black,bg=red,bold] #H #[default]' # 일반 창 #setw -g window-status-format '#[fg=white,bg=black] #I #W ' # 현재 창 setw -g window-status-current-format '#[fg=black,bg=cyan,bold] #I* #W ' # 오른쪽 -> 날짜/시간 set -g status-right '#[fg=black,...