add tmux support
This commit is contained in:
@@ -4,6 +4,7 @@ stores:
|
|||||||
files:
|
files:
|
||||||
- .omp
|
- .omp
|
||||||
- .emacs.d/init.el
|
- .emacs.d/init.el
|
||||||
|
- .tmux.conf
|
||||||
bash:
|
bash:
|
||||||
target: "~"
|
target: "~"
|
||||||
files:
|
files:
|
||||||
|
|||||||
52
apps/.tmux.conf
Normal file
52
apps/.tmux.conf
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
# tmux config file
|
||||||
|
# with help from https://hamvocke.com/blog/a-guide-to-customizing-your-tmux-conf/
|
||||||
|
|
||||||
|
# remap prefix from 'C-b' to 'C-a' (easy with caps-lock remap)
|
||||||
|
unbind C-b
|
||||||
|
set-option -g prefix C-a
|
||||||
|
bind-key C-a send-prefix
|
||||||
|
|
||||||
|
# split panes using | and -
|
||||||
|
bind | split-window -h
|
||||||
|
bind - split-window -v
|
||||||
|
unbind '"'
|
||||||
|
unbind %
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
||||||
|
# enable mouse control
|
||||||
|
set -g mouse on
|
||||||
|
|
||||||
|
# don't rename windows automatically
|
||||||
|
set-option -g allow-rename off
|
||||||
|
|
||||||
|
# faster, snappier
|
||||||
|
set -g escape-time 0
|
||||||
|
set -g history-limit 200000
|
||||||
|
|
||||||
|
# use 256 colors + better terminal features
|
||||||
|
set -g default-terminal "tmux-256color"
|
||||||
|
set -as terminal-features ",xterm-256color:RGB"
|
||||||
|
set -g focus-events on
|
||||||
|
|
||||||
|
# Start windows/panes at 1 (more human, less C)
|
||||||
|
set -g base-index 1
|
||||||
|
setw -g pane-base-index 1
|
||||||
|
|
||||||
|
# Renumber windows when one is closed
|
||||||
|
set -g renumber-windows on
|
||||||
|
|
||||||
|
# Status bar: simple + useful
|
||||||
|
set -g status-interval 5
|
||||||
|
set -g status-left-length 40
|
||||||
|
set -g status-right-length 120
|
||||||
|
set -g status-left " #[bold]#S #[default]"
|
||||||
|
set -g status-right " %Y-%m-%d %H:%M "
|
||||||
|
|
||||||
|
# Reduce “my panes renamed themselves” chaos
|
||||||
|
set -g allow-rename off
|
||||||
|
setw -g automatic-rename on
|
||||||
Reference in New Issue
Block a user