added tmux config file
This commit is contained in:
parent
3ce3243346
commit
dde4e08c8d
1 changed files with 68 additions and 0 deletions
68
.config/tmux/tmux.conf
Normal file
68
.config/tmux/tmux.conf
Normal file
|
@ -0,0 +1,68 @@
|
||||||
|
# set 256color
|
||||||
|
# set -g default-terminal "tmux-256color"
|
||||||
|
|
||||||
|
# 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
|
||||||
|
set -sa terminal-overrides ",alacritty:Tc"
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
||||||
|
# turn off auto window name (may use more CPU)
|
||||||
|
setw -g automatic-rename off
|
||||||
|
|
||||||
|
# customized key bindings
|
||||||
|
bind r source-file ~/.tmux.conf # reload tmux conf with r
|
||||||
|
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
|
||||||
|
set -g pane-border-style fg=red
|
||||||
|
set -g pane-active-border-style fg=yellow
|
||||||
|
# set -g pane-border-status top
|
||||||
|
# set -g pane-border-format "[ #P ]"
|
||||||
|
|
||||||
|
# status line
|
||||||
|
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
|
||||||
|
# define left status content
|
||||||
|
# sets color to green, skull icon, session in brackets, change color back to defaultr
|
||||||
|
set -g status-left " 💀 [ #S ] "
|
||||||
|
set -g status-right " 📆 %a %d 🕓%l:%M:%S %P "
|
||||||
|
|
||||||
|
# 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'
|
||||||
|
|
||||||
|
# initialize TMUX plugin manager (keep this line at the bottom)
|
||||||
|
run '~/.tmux/plugins/tpm/tpm'
|
Loading…
Reference in a new issue