ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • tmux conf
    IT정보 2026. 4. 14. 22:40

    # Prefix

    set -g prefix C-Space
    set -g prefix2 C-b

    # Basic configuration

    set-option -g history-limit 50000
    set -g default-terminal "tmux-256color"
    set -g base-index 1
    setw -g pane-base-index 1
    set -g renumber-windows on

    # Split hotkey

    bind \\ split-window -h
    bind - split-window -v

    # 상태바 색상

    set -g status-bg colour234
    set -g status-fg colour136

    # 상태바 위치 & 기본 설정

    set -g status-position bottom
    set -g status-justify centre
    set -g status-style bg=#1f2335,fg=#c0caf5

    # 왼쪽 (세션 이름)

    set -g status-left-length 40
    set -g status-left "#[fg=#1f2335,bg=#9ece6a,bold]\[S#S]"

    # 오른쪽 (시간 + 날짜)

    set -g status-right-length 80
    set -g status-right "#[fg=#bb9af7] %Y-%m-%d #[fg=#7dcfff] %H:%M "

    # 비활성 윈도우

    setw -g window-status-format "#[fg=#1a1b26,bg=#565f89]\[W#I]#[fg=#565f89,bg=#1a1b26] #W "


    # 활성 윈도우

    setw -g window-status-current-format "#[fg=#1f2335,bg=#bb9af7,bold]\[W#I]#[fg=#c0caf5,bg=#1f2335,bold] #W "

    # 구분자 스타일

    setw -g window-status-separator " "

    # 액티비티 표시

    setw -g window-status-activity-style fg=#f7768e

    # 현재 창 강조

    setw -g window-status-current-style fg=black,bg=yellow

    # Pane border 스타일

    set -g pane-border-style fg=#3b4261
    set -g pane-active-border-style fg=#7aa2f7

    # Pane 상단 정보 표시

    set -g pane-border-status top
    set -g pane-border-format " #[fg=#000000,bg=#7aa2f7]\[P#P]#[fg=#9ece6a,bg=#000000] #{pane_current_command} "
    set -g pane-border-lines double

    # 클립보드 연동 (WSL에서 유용)

    set -g set-clipboard on

    # 마우스 활성화

    set -g mouse on

    # 스크롤 히스토리 증가

    set-option -g history-limit 50000

    # 텍스트 선택 모드

    setw -g mode-keys vi

    # 텍스트 선택 복사 설정(우분투)

    bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xclip -selection clipboard -in"
    bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -selection clipboard -in"

    # 텍스트 선택 복사 설정(wsl)

    # bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "clip.exe"
    # bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "clip.exe"

Designed by Tistory.