Created
May 10, 2022 16:30
-
-
Save rbranson/ebfa4a8dbb9715b9e4f13d433179ce0a to your computer and use it in GitHub Desktop.
.tmux.conf
This file contains 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
# is this tmux.conf good in 2022? i dunno. | |
unbind C-b | |
# C-b is not acceptable -- Vim uses it | |
set-option -g prefix C-a | |
bind-key C-a last-window | |
# Allows us to use C-a a <command> to send commands to a TMUX session inside | |
# another TMUX session | |
bind-key a send-prefix | |
bind d detach | |
bind p previous-window | |
bind n next-window | |
bind h select-pane -L | |
bind k select-pane -D | |
bind j select-pane -U | |
bind l select-pane -R | |
bind v split-window -h | |
bind s split-window -v | |
bind -r < resize-pane -L 3 | |
bind -r > resize-pane -R 3 | |
bind -r + resize-pane -U 2 | |
bind -r = resize-pane -D 2 | |
bind -r - resize-pane -D 2 | |
bind C new-window | |
bind S choose-session | |
bind [ copy-mode | |
setw -g mode-keys vi | |
#bind -T vi-copy v begin-selection | |
#bind -T vi-copy y copy-selection | |
#bind -T vi-copy k cursor-down # reversed for colemak | |
#bind -T vi-copy j cursor-up | |
# Stuff | |
set -g set-titles-string "tmux.#I.#W" | |
set -g base-index 1 | |
set -s escape-time 0 | |
setw -g aggressive-resize on | |
set -g default-terminal "screen-256color" | |
set -ga update-environment " SOLARIZED" | |
set -g history-limit 10000 | |
# Turn on mouse mode | |
# set -g mouse-utf8 on | |
set -g mouse on | |
# Hold down Ctrl to speed up mouse scrolling | |
#bind -n C-WheelUpPane select-pane -t= \; copy-mode -e \; send-keys -M | |
#bind-key -t vi-copy PPage page-up | |
#bind-key -t vi-copy NPage page-down | |
bind-key -T root WheelUpPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; copy-mode -e; send-keys -M" | |
bind-key -T root WheelDownPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; send-keys -M" | |
#bind-key -t vi-copy WheelUpPane halfpage-up | |
#bind-key -t vi-copy WheelDownPane halfpage-down | |
#set -g status-left-length 52 | |
#set -g status-right-length 451 | |
#set -g status-fg white | |
#set -g status-bg colour234 | |
#set -g window-status-activity-attr bold | |
#set -g pane-border-fg colour245 | |
#set -g pane-active-border-fg colour39 | |
#set -g message-fg colour16 | |
#set -g message-bg colour221 | |
#set -g message-attr bold | |
#set -g status-left '#[fg=colour235,bg=colour252,bold] ❐ #S #[fg=colour252,bg=colour238,nobold]⮀#[fg=colour245,bg=colour238,bold] #(whoami) #[fg=colour238,bg=colour234,nobold]⮀' | |
#set -g window-status-format "#[fg=white,bg=colour234] #I #W " | |
#set -g window-status-current-format "#[fg=colour234,bg=colour39]⮀#[fg=colour25,bg=colour39,noreverse,bold] #I ⮁ #W #[fg=colour39,bg=colour234,nobold]⮀" | |
# Status update interval | |
set -g status-interval 1 | |
# Basic status bar colors | |
set -g status-bg black | |
set -g status-fg cyan | |
# Left side of status bar | |
set -g status-left-bg black | |
set -g status-left-fg green | |
set -g status-left-length 40 | |
set -g status-left "#S #[fg=white]» #[fg=yellow]#I #[fg=cyan]#P" | |
# Right side of status bar | |
set -g status-right-bg black | |
set -g status-right-fg cyan | |
set -g status-right-length 40 | |
set -g status-right "#H #[fg=white]« #[fg=yellow]%H:%M:%S #[fg=green]%d-%b-%y" | |
# Window status | |
set -g window-status-format " #I:#W#F " | |
set -g window-status-current-format " #I:#W#F " | |
# Current window status | |
set -g window-status-current-bg red | |
set -g window-status-current-fg black | |
# Window with activity status | |
set -g window-status-activity-bg yellow # fg and bg are flipped here due to a | |
set -g window-status-activity-fg black # bug in tmux | |
# Window separator | |
set -g window-status-separator "" | |
# Window status alignment | |
set -g status-justify centre | |
# Pane border | |
set -g pane-border-bg default | |
set -g pane-border-fg default | |
# Active pane border | |
set -g pane-active-border-bg default | |
set -g pane-active-border-fg green | |
# Pane number indicator | |
set -g display-panes-colour default | |
set -g display-panes-active-colour default | |
# Clock mode | |
set -g clock-mode-colour red | |
set -g clock-mode-style 24 | |
# Message | |
set -g message-bg default | |
set -g message-fg default | |
# Command message | |
set -g message-command-bg default | |
set -g message-command-fg default | |
# Mode | |
set -g mode-bg red | |
set -g mode-fg default |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment