Tmux 설정

말랑배·2022년 4월 27일
0

리눅스

목록 보기
1/6

Tmux를 사용하고 있다.

사용하면서 여기저기서 주워온 설정 파일을 공유한다.

######################################
###########Design change##############
######################################

## loud or quiet?
set-option -g visual-activity off
set-option -g visual-bell off
set-option -g visual-silence off
set-window-option -g monitor-activity off
set-window-option -g mode-keys vi # use vi keys in tmux
set-option -g bell-action none

# Start window and pane indices at 1.
set -g base-index 1
set -g pane-base-index 0

# Length of tmux status line
set -g status-left-length 30
set -g status-right-length 150

set-option -g status "on"

# Default statusbar color
set-option -g status-style bg="#404040",fg="#ffffff"

# Default window title colors
set-window-option -g window-status-style bg="#555555",fg="#cccccc"

# Default window with an activity alert
set-window-option -g window-status-activity-style bg="#ffff00",fg="#0000ff"

# Active window title colors
set-window-option -g window-status-current-style bg="#aa5500",fg="#eeeeee"

# Set active pane border color
set-option -g pane-active-border-style bg="#333377",fg="#dd4400"

# Set inactive pane border color
set-option -g pane-border-style fg="#333333"

# Clock
set-window-option -g clock-mode-colour "#aa5500"

set-option -g status-left "\
#[fg=colour7, bg=colour241]#{?client_prefix,#[bg=colour167],} ❐ #S \
#[fg=colour241, bg=colour237]#{?client_prefix,#[fg=colour167],}#{?window_zoomed_flag, 🔍,}"

set-option -g status-right "\
#[fg=#aa5500, bg=#404040] \
#[fg=#e0e030, bg=#aa5500] \
#[fg=#444444, bg=#e0e030] %Y-%m-%d\
#[fg=#202020, bg=#e0e030] \
#[fg=#c0c0c0, bg=#202020] %T "

set -g default-terminal "screen-256color"

적용 방법은

  1. tmux 아무 세션 열로 들어가서
  2. command mode(C-b C-:)에서
  3. source-file ~/.tmux.conf

주요 이득은...

  1. 복사모드에서 space로 선택을 시작하고 enter로 복사 할 수 있다
  2. 마우스 복사가 편하다
  3. 컬러가 살아나고 이뻐진다




혹시 복사모드에서 이동이 이상하다면...

echo "set -o vi" >> ~/.bashrc | source ~/.bashrc

하고 다시 적용 해 보자.

profile
털보 호소인

0개의 댓글