2023-11-10 01:36:10 +00:00
|
|
|
# set 256color
|
|
|
|
# set -g default-terminal "tmux-256color"
|
|
|
|
|
2024-09-12 00:51:42 +00:00
|
|
|
# set default shell
|
|
|
|
set-option -g default-shell "/usr/bin/fish"
|
|
|
|
|
2023-11-10 01:36:10 +00:00
|
|
|
# change update interval from default of 15
|
|
|
|
set -g status-interval 1
|
|
|
|
|
|
|
|
# set escape time per nvim health check
|
|
|
|
set-option -sg escape-time 10
|
|
|
|
|
|
|
|
# set focus events per nvim health check
|
|
|
|
set-option -g focus-events on
|
|
|
|
|
|
|
|
# set term gui colors per nvim health check
|
2024-09-12 00:51:42 +00:00
|
|
|
#set -sa terminal-overrides ",alacritty:Tc"
|
2023-11-10 01:36:10 +00:00
|
|
|
|
|
|
|
# start windows and panes numbering at 1 instead of the default 0
|
|
|
|
set -g base-index 1
|
|
|
|
set -g pane-base-index 1
|
|
|
|
|
|
|
|
# turn moust control on
|
|
|
|
set -g mouse on
|
|
|
|
|
|
|
|
# change command prefix from C-b to C-a
|
|
|
|
set-option -g prefix C-a
|
|
|
|
|
2024-09-12 00:51:42 +00:00
|
|
|
# auto window name (may use more CPU)
|
|
|
|
setw -g automatic-rename on
|
2023-11-10 01:36:10 +00:00
|
|
|
|
|
|
|
# customized key bindings
|
2024-09-12 00:51:42 +00:00
|
|
|
bind r source-file ~/.config/tmux/tmux.conf # reload tmux conf with r
|
2023-11-10 01:36:10 +00:00
|
|
|
bind | split-window -h # use | for horizontal spli
|
|
|
|
bind - split-window -v # use - for vertical split
|
|
|
|
unbind '"' # unbind default horizontal split key
|
|
|
|
unbind % # unbind default vertical split key
|
|
|
|
|
|
|
|
# switch panes using alt-arrow without prefix
|
|
|
|
bind -n M-Left select-pane -L
|
|
|
|
bind -n M-Right select-pane -R
|
|
|
|
bind -n M-Up select-pane -U
|
|
|
|
bind -n M-Down select-pane -D
|
|
|
|
|
|
|
|
# pane settings
|
2024-09-12 00:51:42 +00:00
|
|
|
#set -g pane-border-style fg=red
|
|
|
|
#set -g pane-active-border-style fg=yellow
|
2023-11-10 01:36:10 +00:00
|
|
|
# set -g pane-border-status top
|
|
|
|
# set -g pane-border-format "[ #P ]"
|
|
|
|
|
|
|
|
# status line
|
2024-09-12 00:51:42 +00:00
|
|
|
#set -g status-position top # set bar to top
|
|
|
|
#set -g status-justify centre # center window list
|
|
|
|
#set -g window-status-current-style 'bold' # set current window name to bold
|
|
|
|
#set -g status-bg color7 # set bar default background color
|
|
|
|
#set -g status-fg color234 # set bar default foreground color
|
2023-11-10 01:36:10 +00:00
|
|
|
# define left status content
|
|
|
|
# sets color to green, skull icon, session in brackets, change color back to defaultr
|
2024-09-12 00:51:42 +00:00
|
|
|
#set -g status-left " 💀 [ #S ] "
|
|
|
|
#set -g status-right " 📆 %a %d 🕓%l:%M:%S %P "
|
|
|
|
set -g status-right '#{prefix_highlight} | %a %Y-%m-%d %H:%M'
|
2023-11-10 01:36:10 +00:00
|
|
|
|
|
|
|
# Set vi keys
|
|
|
|
set -g mode-keys vi
|
|
|
|
set -g status-keys vi
|
|
|
|
|
|
|
|
# list of plugins
|
|
|
|
set -g @plugin 'tmux-plugins/tpm'
|
|
|
|
set -g @plugin 'tmux-plugins/tmux-sensible'
|
|
|
|
|
2024-09-12 00:51:42 +00:00
|
|
|
# Nord Theme Plugin
|
|
|
|
set -g @plugin 'arcticicestudio/nord-tmux'
|
|
|
|
|
|
|
|
# other examples:
|
|
|
|
# set -g @plugin 'github_username/plugin_name'
|
|
|
|
# set -g @plugin 'git@github.com/user/plugin'
|
|
|
|
# set -g @plugin 'git@bitbucket.com/user/plugin'
|
|
|
|
|
2023-11-10 01:36:10 +00:00
|
|
|
# initialize TMUX plugin manager (keep this line at the bottom)
|
|
|
|
run '~/.tmux/plugins/tpm/tpm'
|