Add tmux config with vim nav and status bar
This commit is contained in:
parent
031269e521
commit
23769cddc9
1 changed files with 32 additions and 0 deletions
32
tmux.conf
Normal file
32
tmux.conf
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
# Tmux config
|
||||||
|
|
||||||
|
# Prefix
|
||||||
|
set -g prefix C-a
|
||||||
|
unbind C-b
|
||||||
|
bind C-a send-prefix
|
||||||
|
|
||||||
|
# Quality of life
|
||||||
|
set -g mouse on
|
||||||
|
set -g history-limit 50000
|
||||||
|
set -g default-terminal "tmux-256color"
|
||||||
|
set -ag terminal-overrides ",xterm-256color:RGB"
|
||||||
|
set -g escape-time 0
|
||||||
|
set -g focus-events on
|
||||||
|
|
||||||
|
# Windows and panes
|
||||||
|
set -g base-index 1
|
||||||
|
setw -g pane-base-index 1
|
||||||
|
set -g renumber-windows on
|
||||||
|
|
||||||
|
# Vim-style navigation
|
||||||
|
bind h select-pane -L
|
||||||
|
bind j select-pane -D
|
||||||
|
bind k select-pane -U
|
||||||
|
bind l select-pane -R
|
||||||
|
bind | split-window -h -c "#{pane_current_path}"
|
||||||
|
bind - split-window -v -c "#{pane_current_path}"
|
||||||
|
|
||||||
|
# Status bar
|
||||||
|
set -g status-style bg=default
|
||||||
|
set -g status-left "#[fg=blue,bold] #S "
|
||||||
|
set -g status-right "#[fg=cyan] %H:%M #[fg=white]│ #[fg=green]%d.%m.%Y "
|
||||||
Loading…
Reference in a new issue