2023-08-17 14:14:00 +09:00
|
|
|
|
# prefix<69>L<EFBFBD>[<5B><>M-a<>ɕύX<CF8D><58><EFBFBD><EFBFBD>
|
|
|
|
|
set -g prefix M-a
|
|
|
|
|
|
|
|
|
|
# M-b<>̃L<CC83>[<5B>o<EFBFBD>C<EFBFBD><43><EFBFBD>h<EFBFBD><68><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
unbind M-b
|
|
|
|
|
|
|
|
|
|
# <20>}<7D>E<EFBFBD>X<EFBFBD><58><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>L<EFBFBD><4C><EFBFBD>ɂ<EFBFBD><C982><EFBFBD>
|
|
|
|
|
set-option -g mouse on
|
|
|
|
|
|
|
|
|
|
# <20>f<EFBFBD>t<EFBFBD>H<EFBFBD><48><EFBFBD>g<EFBFBD>V<EFBFBD>F<EFBFBD><46><EFBFBD>̐ݒ<CC90>
|
|
|
|
|
set-option -g default-shell /bin/zsh
|
|
|
|
|
set-option -g default-command /bin/zsh
|
|
|
|
|
|
|
|
|
|
# <20>L<EFBFBD>[<5B>X<EFBFBD>g<EFBFBD><67><EFBFBD>[<5B>N<EFBFBD>̃f<CC83>B<EFBFBD><42><EFBFBD>C<EFBFBD><43><EFBFBD><EFBFBD><EFBFBD>炷
|
2023-11-23 10:06:52 +09:00
|
|
|
|
set -s escape-time 10
|
2023-08-17 14:14:00 +09:00
|
|
|
|
|
|
|
|
|
# <20>E<EFBFBD>B<EFBFBD><42><EFBFBD>h<EFBFBD>E<EFBFBD>̃C<CC83><43><EFBFBD>f<EFBFBD>b<EFBFBD>N<EFBFBD>X<EFBFBD><58>1<EFBFBD><31><EFBFBD><EFBFBD><EFBFBD>n<EFBFBD>߂<EFBFBD>
|
|
|
|
|
set -g base-index 1
|
|
|
|
|
|
|
|
|
|
# <20>y<EFBFBD>C<EFBFBD><43><EFBFBD>̃C<CC83><43><EFBFBD>f<EFBFBD>b<EFBFBD>N<EFBFBD>X<EFBFBD><58>1<EFBFBD><31><EFBFBD><EFBFBD><EFBFBD>n<EFBFBD>߂<EFBFBD>
|
|
|
|
|
set-window-option -g pane-base-index 1
|
|
|
|
|
|
|
|
|
|
# <20>ݒ<EFBFBD><DD92>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>[<5B>h<EFBFBD><68><EFBFBD><EFBFBD>
|
|
|
|
|
bind-key r source-file ~/.tmux.conf \; display "Reloaded."
|
|
|
|
|
|
|
|
|
|
# M-a*2<><32>tmux<75><78><EFBFBD>̃v<CC83><76><EFBFBD>O<EFBFBD><4F><EFBFBD><EFBFBD><EFBFBD><EFBFBD>M-a<>𑗂<EFBFBD>
|
|
|
|
|
bind-key M-a send-prefix
|
|
|
|
|
|
2023-11-21 21:52:37 +09:00
|
|
|
|
# <20>Z<EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
bind -n M-C new-session
|
|
|
|
|
bind -n M-L switch-client -n
|
|
|
|
|
bind -n M-H switch-client -p
|
|
|
|
|
|
|
|
|
|
## tmux-fzf
|
|
|
|
|
TMUX_FZF_LAUNCH_KEY="a"
|
2023-11-23 10:06:52 +09:00
|
|
|
|
TMUX_FZF_OPTIONS="-p 20% --preview 'echo {}' --preview-window=border-sharp,hidden --bind '?:toggle-preview' --multi --ansi --no-separator --no-scrollbar --reverse --border=none \
|
2024-10-24 10:52:15 +09:00
|
|
|
|
--color=bg+:#272e33,bg:#272e33,spinner:#a7c080,hl:#a7c080 \
|
|
|
|
|
--color=fg:#d3c6aa,header:#a7c080,info:#a7c080,pointer:#a7c080 \
|
2024-10-24 19:17:56 +09:00
|
|
|
|
--color=marker:#a7c080,fg+:#d3c6aa,prompt:#e67e80,hl+:#a7c080"
|
2023-11-21 21:52:37 +09:00
|
|
|
|
TMUX_FZF_PREVIEW=0
|
|
|
|
|
|
2023-08-17 14:14:00 +09:00
|
|
|
|
# <20>E<EFBFBD>C<EFBFBD><43><EFBFBD>h<EFBFBD>E<EFBFBD><45><EFBFBD><EFBFBD>
|
|
|
|
|
bind-key -n M-s split-window -v -c "#{pane_current_path}"
|
|
|
|
|
bind-key -n M-v split-window -h -c "#{pane_current_path}"
|
|
|
|
|
|
|
|
|
|
bind-key -n M-Left select-pane -L
|
|
|
|
|
bind-key -n M-Right select-pane -R
|
|
|
|
|
bind-key -n M-Up select-pane -U
|
|
|
|
|
bind-key -n M-Down select-pane -D
|
|
|
|
|
|
|
|
|
|
bind-key -n M-w new-window
|
2023-11-20 22:40:07 +09:00
|
|
|
|
bind-key -n M-e popup
|
2023-08-17 14:14:00 +09:00
|
|
|
|
|
|
|
|
|
bind-key -n M-Tab select-window -t :+
|
|
|
|
|
bind-key -n M-1 select-window -t 1
|
|
|
|
|
bind-key -n M-2 select-window -t 2
|
|
|
|
|
bind-key -n M-3 select-window -t 3
|
|
|
|
|
bind-key -n M-4 select-window -t 4
|
|
|
|
|
bind-key -n M-5 select-window -t 5
|
|
|
|
|
bind-key -n M-6 select-window -t 6
|
|
|
|
|
bind-key -n M-7 select-window -t 7
|
|
|
|
|
bind-key -n M-8 select-window -t 8
|
|
|
|
|
bind-key -n M-9 select-window -t 9
|
|
|
|
|
|
|
|
|
|
bind-key -n M-h select-pane -L
|
|
|
|
|
bind-key -n M-l select-pane -R
|
|
|
|
|
bind-key -n M-j select-pane -D
|
|
|
|
|
bind-key -n M-k select-pane -U
|
|
|
|
|
|
|
|
|
|
bind-key -n M-q kill-pane
|
|
|
|
|
bind-key q kill-window
|
|
|
|
|
|
|
|
|
|
# <20>R<EFBFBD>s<EFBFBD>[<5B><><EFBFBD>[<5B>h
|
|
|
|
|
set-window-option -g mode-keys vi
|
|
|
|
|
bind-key -T copy-mode-vi v send-keys -X begin-selection
|
|
|
|
|
bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
|
|
|
|
|
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xsel -bi"
|
|
|
|
|
bind-key -T copy-mode-vi Y send-keys -X copy-line "xsel -bi"
|
|
|
|
|
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "xsel -bi"
|
|
|
|
|
bind-key Space copy-mode
|
|
|
|
|
bind-key p paste-buffer
|
|
|
|
|
|
|
|
|
|
# Vim<69>̃L<CC83>[<5B>o<EFBFBD>C<EFBFBD><43><EFBFBD>h<EFBFBD>Ńy<C583>C<EFBFBD><43><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>T<EFBFBD>C<EFBFBD>Y<EFBFBD><59><EFBFBD><EFBFBD>
|
|
|
|
|
bind-key -r H resize-pane -L 3
|
|
|
|
|
bind-key -r J resize-pane -D 3
|
|
|
|
|
bind-key -r K resize-pane -U 3
|
|
|
|
|
bind-key -r L resize-pane -R 3
|
|
|
|
|
|
|
|
|
|
# 256<35>F<EFBFBD>[<5B><><EFBFBD><EFBFBD><EFBFBD>g<EFBFBD>p<EFBFBD><70><EFBFBD><EFBFBD>
|
|
|
|
|
set -g default-terminal "tmux-256color"
|
2023-11-20 22:40:07 +09:00
|
|
|
|
set-option -sa terminal-overrides ",xterm-256color:RGB"
|
|
|
|
|
set-option -ga terminal-overrides ",$TERM:Tc"
|
2023-08-17 14:14:00 +09:00
|
|
|
|
|
|
|
|
|
# <20>y<EFBFBD>C<EFBFBD><43><EFBFBD>̘g<CC98><67>
|
|
|
|
|
set -g pane-border-lines single
|
|
|
|
|
|
|
|
|
|
# <20>X<EFBFBD>e<EFBFBD>[<5B>^<5E>X<EFBFBD>o<EFBFBD>[<5B><><EFBFBD>ݒ肷<DD92><E882B7>
|
|
|
|
|
set-option -g status-position "top"
|
|
|
|
|
set -g status-justify "left"
|
|
|
|
|
set -g status "on"
|
|
|
|
|
set -g status-left-style "none"
|
2024-10-24 10:52:15 +09:00
|
|
|
|
set -g message-command-style "fg=#d3c6aa,bg=#374145"
|
2023-08-17 14:14:00 +09:00
|
|
|
|
set -g status-right-style "none"
|
2024-10-24 10:52:15 +09:00
|
|
|
|
set -g pane-active-border-style "fg=#a7c080"
|
|
|
|
|
set -g status-style "none,bg=#272e33"
|
|
|
|
|
set -g message-style "fg=#d3c6aa,bg=#374145"
|
|
|
|
|
set -g pane-border-style "fg=#374145"
|
2023-08-17 14:14:00 +09:00
|
|
|
|
set -g status-right-length "100"
|
|
|
|
|
set -g status-left-length "100"
|
2024-10-24 10:52:15 +09:00
|
|
|
|
set-window-option -g window-status-activity-style "none,fg=#a7c080,bg=#272e33"
|
2023-08-17 14:14:00 +09:00
|
|
|
|
set-window-option -g window-status-separator ""
|
2024-10-24 10:52:15 +09:00
|
|
|
|
set-window-option -g window-status-style "none,fg=#d3c6aa,bg=#272e33"
|
|
|
|
|
set -g status-left "#[fg=#272e33,bg=#a7c080] #S #[fg=#a7c080,bg=#272e33,nobold,nounderscore,noitalics]"
|
2023-08-17 14:14:00 +09:00
|
|
|
|
set -g status-right ""
|
2024-10-24 10:52:15 +09:00
|
|
|
|
set-window-option -g window-status-format "#[fg=#272e33,bg=#272e33,nobold,nounderscore,noitalics]#[default] #I #W #[fg=#272e33,bg=#272e33,nobold,nounderscore,noitalics]"
|
|
|
|
|
set-window-option -g window-status-current-format "#[fg=#272e33,bg=#374145,nobold,nounderscore,noitalics]#[fg=#d3c6aa,bg=#374145] #I #W #[fg=#374145,bg=#272e33,nobold,nounderscore,noitalics]"
|
2023-08-17 14:14:00 +09:00
|
|
|
|
|
|
|
|
|
## <20><><EFBFBD>t<EFBFBD><74><EFBFBD>b<EFBFBD>V<EFBFBD><56><EFBFBD>̊Ԋu<D48A><75><EFBFBD>ݒ肷<DD92><E882B7>
|
|
|
|
|
set -g status-interval 1
|
|
|
|
|
|
|
|
|
|
## <20>t<EFBFBD>H<EFBFBD>[<5B>J<EFBFBD>X<EFBFBD>C<EFBFBD>x<EFBFBD><78><EFBFBD>g
|
|
|
|
|
set -g focus-events on
|
|
|
|
|
|
|
|
|
|
## <20><><EFBFBD>B<EFBFBD>W<EFBFBD><57><EFBFBD>A<EFBFBD><41><EFBFBD>m<EFBFBD>[<5B>e<EFBFBD>B<EFBFBD>t<EFBFBD>B<EFBFBD>P<EFBFBD>[<5B>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>L<EFBFBD><4C><EFBFBD>ɂ<EFBFBD><C982><EFBFBD>
|
|
|
|
|
set-window-option -g monitor-activity on
|
|
|
|
|
set -g visual-activity on
|
|
|
|
|
|
2023-11-21 21:52:37 +09:00
|
|
|
|
## TPM
|
2023-11-23 10:06:52 +09:00
|
|
|
|
set -g @plugin "sainnhe/tmux-fzf"
|
|
|
|
|
run -b "/usr/share/tmux-plugin-manager/tpm"
|