feat(tmux): add config
This commit is contained in:
parent
9c2358068d
commit
d906970d88
1 changed files with 44 additions and 0 deletions
44
home/oli/.config/tmux/tmux.conf
Normal file
44
home/oli/.config/tmux/tmux.conf
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
# Source changes without restarting tmux:
|
||||
# tmux source-file ~/.tmux.conf
|
||||
#
|
||||
# Prefix is Ctrl+b, then:
|
||||
# c create new window
|
||||
# n switch to next window
|
||||
# <n> switch to windows <n>
|
||||
# o switch to next pane
|
||||
# % split pane vertically
|
||||
# " split pane horizontally
|
||||
# <Space> change layout when having more than one pane
|
||||
# , rename active window
|
||||
|
||||
set -g mouse on
|
||||
|
||||
# Increase scrollback history
|
||||
set-option -g history-limit 50000
|
||||
|
||||
# Faster mouse scrolling
|
||||
set -g @scroll-speed-num-lines-per-scroll 5
|
||||
|
||||
# Vi mode to copy things from terminal
|
||||
setw -g mode-keys vi
|
||||
|
||||
# Count panes from 1 instead of 0
|
||||
set -g base-index 1
|
||||
setw -g pane-base-index 1
|
||||
|
||||
# Status bar
|
||||
# set -g status 2
|
||||
set -g status-style fg=#dedede,bg=#9d7cd8
|
||||
set-window-option -g window-status-current-style bg=#3e3158
|
||||
set -g status-left-length 65
|
||||
set -g status-left "Ctrl+b + [c]reate window, [n]ext window "
|
||||
set -g status-justify centre
|
||||
set -g status-right '%A, %d %B %R %Z'
|
||||
|
||||
# Get good colors
|
||||
# https://www.reddit.com/r/tmux/comments/mesrci/tmux_2_doesnt_seem_to_use_256_colors/
|
||||
#set-option -g default-terminal "screen-256color"
|
||||
set -g default-terminal "tmux-256color"
|
||||
set -ga terminal-overrides ",*256col*:Tc"
|
||||
set -ga terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[ q'
|
||||
set-environment -g COLORTERM "truecolor"
|
||||
Loading…
Add table
Add a link
Reference in a new issue