윈도우용 tmux config 문제

This commit is contained in:
Jerry Chae committed 2026-05-13 18:17:08 +09:00
1 parent dbcf5a4bb6
commit 3f24b3fd95
1 file changed
+23 -30
+23 -30
View File
@@ -139,45 +139,50 @@ if (Test-Path $ConfFile) {
} }
$tmuxConf = @' $tmuxConf = @'
# .tmux.conf 샘플 # .tmux.conf - tmux-windows compatible
#
# Based on: https://github.com/arndawg/tmux-windows/blob/master/example_tmux.conf
# Prefix key 변경 (기본은 Ctrl-b) # Prefix key (default is Ctrl-b, changed to Ctrl-a)
set -g prefix C-a set -g prefix C-a
unbind C-b unbind C-b
bind C-a send-prefix bind C-a send-prefix
# 창 분할 단축키 변경 # Terminal settings (important for Windows compatibility)
set -g default-terminal "tmux-256color"
set-option -sa terminal-features ",xterm*:RGB"
# No bells
set -g bell-action none
# Split panes with current path
bind | split-window -h -c "#{pane_current_path}" bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}" bind - split-window -v -c "#{pane_current_path}"
unbind '"' unbind '"'
unbind % unbind %
# 창 이동 단축키 (vim 스타일) # Pane navigation (vim-style)
bind h select-pane -L bind h select-pane -L
bind j select-pane -D bind j select-pane -D
bind k select-pane -U bind k select-pane -U
bind l select-pane -R bind l select-pane -R
# 창 전환 단축키 # Window navigation
bind -r C-h previous-window bind -r C-h previous-window
bind -r C-l next-window bind -r C-l next-window
# 창 재정렬 # Layout
bind Space next-layout bind Space next-layout
# 창 회전
bind o rotate-window bind o rotate-window
# 창 이름 변경 # Window management
bind , command-prompt "rename-window %%" bind , command-prompt "rename-window %%"
# 창 닫기
bind & kill-window bind & kill-window
# 세션 재시작 # Reload config
bind r source-file ~/.tmux.conf \; display "Reloaded!" bind r source-file ~/.tmux.conf \; display "Reloaded!"
# 상태 표시줄 설정 # Status bar
set -g status-bg colour235 set -g status-bg colour235
set -g status-fg colour136 set -g status-fg colour136
set -g status-left-length 40 set -g status-left-length 40
@@ -185,32 +190,20 @@ set -g status-right-length 40
set -g status-interval 5 set -g status-interval 5
set -g history-limit 10000 set -g history-limit 10000
# 상태 표시줄 왼쪽 내용
set -g status-left '#[fg=green]#S #[fg=yellow]#H' set -g status-left '#[fg=green]#S #[fg=yellow]#H'
# 상태 표시줄 오른쪽 내용
set -g status-right '#[fg=cyan]%Y-%m-%d #[fg=green]%H:%M:%S' set -g status-right '#[fg=cyan]%Y-%m-%d #[fg=green]%H:%M:%S'
# 활성 창 스타일 # Pane border colors
#set -g window-active-style 'fg=colour250,bg=colour232'
# 비활성 창 스타일
#set -g window-style 'fg=colour247,bg=colour236'
# 패널 테두리 색상
#set -g pane-border-fg colour238
#set -g pane-active-border-fg colour51
set-option -g pane-border-style 'fg=colour244' set-option -g pane-border-style 'fg=colour244'
set-option -g pane-active-border-style 'fg=colour77' set-option -g pane-active-border-style 'fg=colour77'
# 복사 모드에서 vi 키 바인딩 사용 # Copy mode with vi keys
setw -g mode-keys vi setw -g mode-keys vi
# 마우스 지원 활성화 # Mouse support (without copy mode dragging)
set -g mouse on set -g mouse on
unbind -n MouseDrag1Pane
# 256색 지원 unbind -Tcopy-mode MouseDrag1Pane
set -g default-terminal "screen-256color"
# for pi # for pi
set -g extended-keys on set -g extended-keys on