From 3f24b3fd954fb97d0de97e3bbf516cbda27b6ade Mon Sep 17 00:00:00 2001 From: Jerry Chae Date: Wed, 13 May 2026 18:17:08 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9C=88=EB=8F=84=EC=9A=B0=EC=9A=A9=20tmux=20c?= =?UTF-8?q?onfig=20=EB=AC=B8=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install-tmux.ps1 | 53 +++++++++++++++++++++--------------------------- 1 file changed, 23 insertions(+), 30 deletions(-) diff --git a/install-tmux.ps1 b/install-tmux.ps1 index d93a134..97e3d1d 100644 --- a/install-tmux.ps1 +++ b/install-tmux.ps1 @@ -139,45 +139,50 @@ if (Test-Path $ConfFile) { } $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 unbind C-b 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 -v -c "#{pane_current_path}" unbind '"' unbind % -# 창 이동 단축키 (vim 스타일) +# Pane navigation (vim-style) bind h select-pane -L bind j select-pane -D bind k select-pane -U bind l select-pane -R -# 창 전환 단축키 +# Window navigation bind -r C-h previous-window bind -r C-l next-window -# 창 재정렬 +# Layout bind Space next-layout - -# 창 회전 bind o rotate-window -# 창 이름 변경 +# Window management bind , command-prompt "rename-window %%" - -# 창 닫기 bind & kill-window -# 세션 재시작 +# Reload config bind r source-file ~/.tmux.conf \; display "Reloaded!" -# 상태 표시줄 설정 +# Status bar set -g status-bg colour235 set -g status-fg colour136 set -g status-left-length 40 @@ -185,32 +190,20 @@ set -g status-right-length 40 set -g status-interval 5 set -g history-limit 10000 -# 상태 표시줄 왼쪽 내용 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 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 +# Pane border colors set-option -g pane-border-style 'fg=colour244' set-option -g pane-active-border-style 'fg=colour77' -# 복사 모드에서 vi 키 바인딩 사용 +# Copy mode with vi keys setw -g mode-keys vi -# 마우스 지원 활성화 +# Mouse support (without copy mode dragging) set -g mouse on - -# 256색 지원 -set -g default-terminal "screen-256color" +unbind -n MouseDrag1Pane +unbind -Tcopy-mode MouseDrag1Pane # for pi set -g extended-keys on