Skip to content

Instantly share code, notes, and snippets.

@hazelement hazelement/.tmux.conf
Last active Oct 26, 2018

Embed
What would you like to do?
machine_config
# Uncomment the lines with the options you want to activate (by deleting the preceding "#")
# Allow mouse interaction
# set-option -g mouse on
# set prefix key
# set -g prefix M-space
# set -g prefix M
# unbind C-b
# bind-key M send-prefix
# Change prefix key to CTRL+A. "C-" stands for CTRL, "M-" stands for ALT key
# set-option -g prefix C-a
# unbind-key C-b
# bind-key C-a send-prefix
######################
# most used bindings #
######################
# create/kill window/pane
bind -n M-t new-window
bind -n M-d split-window -h
bind -n M-s split-window -v
bind -n M-w kill-pane
# select window by tab number
bind -n M-1 select-window -t 1
bind -n M-2 select-window -t 2
bind -n M-3 select-window -t 3
bind -n M-4 select-window -t 4
bind -n M-5 select-window -t 5
bind -n M-6 select-window -t 6
# Use Alt-arrow keys without prefix key to switch panes
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
# Shift arrow to switch windows
# bind -n M-[ previous-window
# bind -n M-] next-window
#######
# end #
#######
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000
setw -g mode-keys vi
setw -g monitor-activity on
# No delay for escape key press
set -sg escape-time 0
# Reload tmux config
bind r source-file ~/.tmux.conf
# THEME
set-option -g status-position top
set -g status-justify left
set -g status-bg black
set -g status-fg white
set -g status-attr dim
set -g status-left ''
set -g status-right '#[fg=white,bg=black,bold] %d/%m #[fg=white,bg=black,bold] %H:%M:%S '
set -g status-right-length 50
set -g status-left-length 20
setw -g window-status-current-fg black
setw -g window-status-current-bg white
setw -g window-status-current-attr bold
setw -g window-status-current-format ' #I#[fg=black]:#[fg=black]#W#[fg=black]#F '
setw -g window-status-fg white
setw -g window-status-bg black
setw -g window-status-attr none
setw -g window-status-format ' #I#[fg=white]:#[fg=white]#W#[fg=white]#F '
setw -g window-status-bell-attr bold
setw -g window-status-bell-fg black
setw -g window-status-bell-bg white
set -g window-style 'fg=colour247,bg=colour236'
set -g window-active-style 'fg=colour250,bg=black'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.