Last active
December 28, 2023 01:06
-
-
Save 0x9900/914061f24f097127380b to your computer and use it in GitHub Desktop.
tmux configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Reload key | |
bind-key R source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded" | |
set-option -g default-command "reattach-to-user-namespace -l zsh" | |
set -g display-time 5000 | |
set -g display-panes-time 5000 | |
# make tmux display things in 256 colors | |
set -g default-terminal "screen-256color" | |
# utf8 | |
#setw -g utf8 on | |
#set -g status-utf8 on | |
set -g history-limit 5000 | |
setw -g pane-base-index 1 | |
set -g base-index 1 | |
# re-number windows when one is closed | |
set -g renumber-windows on | |
set -g set-titles on | |
set -g set-titles-string "#I:#W" | |
set -g status-left-length 50 | |
set -g status-left ' [#h:#S] #I:#P |#[default]' | |
set -g status-right-length 60 | |
set -g status-right '| #H - [%a %d %b %R] ' | |
# more natural splitting | |
unbind % | |
unbind '"' | |
bind | split-window -h | |
# bind | split-window -h \; select-layout even-horizontal | |
bind - split-window -v | |
bind ! confirm-before -p "break-pane #P? (y/n)" break-pane | |
# When I hit this one by mistake it fucks up all my panes. | |
unbind-key Space | |
bind-key Space display-message "Don't fuck up the panes" | |
# I keep trying to select panes with my window. | |
# set -g mouse-select-pane off | |
# Pane synchronization. | |
bind-key = setw synchronize-panes | |
# panes sizes | |
bind-key -r J resize-pane -D 3 | |
bind-key -r K resize-pane -U 3 | |
bind-key -r H resize-pane -L 3 | |
bind-key -r L resize-pane -R 3 | |
# --- COLOURS ---------------- | |
# pane border colors | |
set -g pane-border-style fg=colour252,bg=default | |
set -g pane-active-border-style fg=colour220,bg=default | |
# default status bar colors | |
set -g status-style fg=colour228,bg=colour235 | |
set -g message-style fg=white,bg=colour235 | |
# default window title colors | |
set-window-option -g window-status-style fg=colour239 | |
# active window title colors | |
set-window-option -g window-status-current-style fg=colour166,bright | |
# misc bindings | |
bind-key S command-prompt -p "Hostname:" "new-window -n %1 'ssh %1'" | |
bind-key / list-panes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment