1
0
Fork 0
mirror of https://github.com/hcartiaux/dotfiles.git synced 2024-10-18 17:25:23 +02:00
dotfiles/tmux/tmux.conf

52 lines
1.7 KiB
Text
Raw Normal View History

2014-01-01 17:43:16 +01:00
################################################################################
# .tmux.conf -- configuration file for [tmux](http://tmux.sourceforge.net/)
# _ __
# | |_ _ __ ___ _ ___ __ ___ ___ _ __ / _|
# | __| '_ ` _ \| | | \ \/ / / __/ _ \| '_ \| |_
# | |_| | | | | | |_| |> < | (_| (_) | | | | _|
# (_)__|_| |_| |_|\__,_/_/\_(_)___\___/|_| |_|_|
#
################################################################################
# Resources:
2014-05-18 19:49:46 +02:00
# * http://www.mindfuzz.net/?p=178
# * https://mutelight.org/practical-tmux
2014-01-01 17:43:16 +01:00
################################################################################
2013-05-02 23:38:33 +02:00
# Make it use C-a, similar to screen..
unbind C-b
unbind l
set -g prefix C-a
bind-key C-a last-window
2014-05-18 19:49:46 +02:00
# Allows for faster key repetition
set -s escape-time 0
2013-05-02 23:38:33 +02:00
# 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
2014-05-18 19:49:46 +02:00
# 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-bg red