윈도우용 tmux config 문제
This commit is contained in:
1 parent
dbcf5a4bb6
commit
3f24b3fd95
1 file changed
+23
-30
+23
-30
@@ -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
|
||||
|
||||
Reference in new issue
Block a user