dotfiles/tmux.conf

35 lines
1.1 KiB
Plaintext

# -- Simple and well documented tmux.conf for newbs -- #
# -- -- #
# -- Copyright (C) 2021 Anaximenes -- #
# -- -- #
# ----x Licence - GPL v.3.0 and above x---- #
# Automatically rename windows
set-option -g automatic-rename on
# Keybinding for loading the correct config file
bind-key R source-file ~/.tmux.conf; display-message "Config enabled."
# Set vi mode as the default; makes using vim easier
setw -g mode-keys vi
set-option -g status-keys vi
# Change default prefix
unbind C-b
set -g prefix C-a
bind C-a send-prefix
# Set pane navigation keys as h,j,k, and l
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Change status bar
set-option -g status-position bottom
set-option -g status-left '#[fg=brightmagenta]#(echo "Session:")#(session_name)'
set-option -g status-right '%H:%M %d-%b-%y'
set-option -g status-justify centre
set-option -g status-style bg=black,fg=brightmagenta
set-option -g window-status-current-format '#[bold,fg=black,bg=brightmagenta]#(window_index)#(echo ":")#(window_name)