THEAARBS tmux conf

Raw

#  _
# | |_ _ __ ___  _   ___  __
# | __| '_ ` _ \| | | \ \/ /
# | |_| | | | | | |_| |>  <
#  \__|_| |_| |_|\__,_/_/\_\
#
# ~/.config/tmux/tmux.conf

# Set command prefix to Ctrl+a
set -g prefix C-a

# Default shell
set-option -g default-shell /bin/bash

# Use mouse
set -g mouse on
set -g terminal-overrides 'xterm*:smcup@:rmcup@'

# Large history
set-option -g history-limit 10000
set -g history-limit 10000

# Auto set window title
setw -g automatic-rename

# Use Vim motion keys in copy mode
setw -g mode-keys vi

# utf8 support
#set-window-option -g utf8 on

# Colors
set-option -g default-terminal "screen-256color"

# Status bar
set-option -g visual-activity on
set-option -g status-bg black
set-option -g status-fg cyan
set-option -g status-interval 5
set-option -g status-left-length 30
set-option -g status-justify right
set-option -g status-left '#[fg=magenta]» #[fg=blue,bold]#T#[default]'
set-option -g status-right '#[fg=red,bold][[ #(git branch) branch ]] #[fg=cyan]»» #[fg=blue,bold]###S #[fg=magenta]%R %m-%d#(acpi | cut -d ',' -f 2)#[default]'
#set-option -g status-utf8 on
#set-option -g status-keys vi

# Titles
set-option -g set-titles on
set-option -g set-titles-string '#H:#S.#I.#P #W #T'

# Windows
setw -g aggressive-resize on
set-window-option -g xterm-keys on
set-window-option -g mode-keys vi
set-window-option -g monitor-activity on
bind -n S-Left      previous-window
bind -n M-,     previous-window
bind -n S-Right     next-window
bind -n M-.     next-window
bind-key z      split-window -v
bind-key v      split-window -h
bind o          rotate-window
bind A          command-prompt "rename-window %%"

# Unbindings
unbind j
unbind C-b
unbind '"'
unbind %

# Bindings
bind-key r      source-file ~/.config/tmux/tmux.conf
bind Escape     copy-mode
bind M--        select-layout "even-vertical"
bind M-|        select-layout "even-horizontal"
bind -n M-Left      select-pane -L
bind -n M-Right     select-pane -R
bind-key h      select-pane -L
bind-key j      select-pane -D
bind-key k      select-pane -U
bind-key l      select-pane -R
bind-key Enter      break-pane
bind-key Space      list-panes
bind-key -n C-up    prev
bind-key -n C-left  prev
bind-key -n C-right next
bind-key -n C-down  next

categories · links · piano · posts · scripts · THEAARBS · home