mirror of
https://github.com/hcartiaux/dotfiles.git
synced 2024-10-18 09:15:24 +02:00
45 lines
1.6 KiB
Bash
45 lines
1.6 KiB
Bash
################################################################################
|
|
# .tmux.conf -- configuration file for [tmux](http://tmux.sourceforge.net/)
|
|
# _ __
|
|
# | |_ _ __ ___ _ ___ __ ___ ___ _ __ / _|
|
|
# | __| '_ ` _ \| | | \ \/ / / __/ _ \| '_ \| |_
|
|
# | |_| | | | | | |_| |> < | (_| (_) | | | | _|
|
|
# (_)__|_| |_| |_|\__,_/_/\_(_)___\___/|_| |_|_|
|
|
#
|
|
################################################################################
|
|
# Resources:
|
|
# * http://www.mindfuzz.net/?p=178
|
|
# * https://mutelight.org/practical-tmux
|
|
################################################################################
|
|
|
|
# Allows for faster key repetition
|
|
set -s escape-time 0
|
|
|
|
# Reload key
|
|
bind r source-file ~/.tmux.conf
|
|
|
|
set -g history-limit 1000
|
|
|
|
# THEME
|
|
set -g status-bg black
|
|
set -g status-fg white
|
|
set -g status-interval 60
|
|
set -g status-left-length 30
|
|
set -g status-left '#[fg=green](#S) #(whoami)@#H#[default]'
|
|
set -g status-right '#[fg=yellow]#(cut -d " " -f 1-3 /proc/loadavg)#[default] #[fg=blue]%H:%M#[default]'
|
|
|
|
# set correct term
|
|
set -g default-terminal screen-256color
|
|
|
|
# Rather than constraining window size to the maximum size of any client
|
|
# connected to the *session*, constrain window size to the maximum size of any
|
|
# client connected to *that window*. Much more reasonable.
|
|
setw -g aggressive-resize on
|
|
|
|
# Allows us to use C-a a <command> to send commands to a TMUX session inside
|
|
# another TMUX session
|
|
bind-key a send-prefix
|
|
|
|
|
|
# Highlight active window
|
|
set-window-option -g window-status-current-style bg=red
|