2022-10-05 19:53:43 +09:00
# tmux conf
2022-10-23 19:25:38 +09:00
source ~/.local.tmux.conf
2022-10-05 19:53:43 +09:00
# -----------------------------------------------
2023-10-13 11:35:59 +09:00
set -g history-limit 500000
2022-10-03 10:54:47 +09:00
2022-10-05 19:53:43 +09:00
set-option -g default-command fish
# -----------------------------------------------
# general inputs config
2022-10-02 06:46:37 +09:00
set -g mouse on
2022-10-02 17:54:27 +09:00
setw -g mode-keys vi
2022-10-02 06:46:37 +09:00
2022-10-05 19:53:43 +09:00
# select panes with vi key bindings
bind-key -T prefix h select-pane -L
bind-key -T prefix j select-pane -D
bind-key -T prefix k select-pane -U
bind-key -T prefix l select-pane -R
# split pane
bind-key -T prefix | split-window -h
bind-key -T prefix \\ split-window -h
bind-key -T prefix - split-window -v
# copy mode
2022-10-05 19:28:58 +09:00
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-selection
2022-10-02 06:46:37 +09:00
2022-10-03 10:54:47 +09:00
2022-10-05 19:53:43 +09:00
# -----------------------------------------------
2022-10-03 11:18:32 +09:00
# start window index at 1
set -g base-index 1
# start pane index at 1
setw -g pane-base-index 1
2023-03-14 12:13:08 +09:00
set-option -g pane-border-indicators both
set-option -g pane-border-lines heavy
2022-10-03 11:18:32 +09:00
# -----------------------------------------------
# status line configs
2023-03-14 12:13:08 +09:00
set-option -g monitor-bell on
set-option -g status-interval 1
set-option -g status-left '#[bg=colour156 bold]#{?client_prefix,#[reverse] P #[noreverse],#{?copy_cursor_x,#[bg=colour216] C , P }}#[bg=default nobold][#S] ' # indicates prefix and copy status
set-option -g status-left-length 15
2022-10-03 10:54:47 +09:00
set-option -g status-right "#[bg=colour156] #T | %y/%m/%d %H:%M:%S"
2023-03-14 12:13:08 +09:00
set-option -g status-right-length 90
2022-10-03 10:54:47 +09:00
#set-window-option -g window-status-format "#[bg=green]#I:#W-" # default
set-window-option -g window-status-current-format "#[bg=colour156]#I:#W*"
2022-10-05 19:28:58 +09:00
2023-03-12 20:10:45 +09:00
# -----------------------------------------------
# true colour
# alacritty: alacritty
# wezterm xfce-terminal konsole gnome-terminal: xterm-256color
set -ga terminal-overrides ",alacritty:RGB,xterm-256color:RGB"
set-option -g focus-events on
2022-10-05 19:28:58 +09:00
set -s escape-time 100
2023-03-12 20:10:45 +09:00