Last active
December 3, 2020 07:14
-
-
Save hylowaker/cabebd889ca9d2ac3869d36beb4af0a1 to your computer and use it in GitHub Desktop.
my tmux config
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
# Change the prefix key to C-a | |
set -g prefix C-a | |
unbind C-b | |
bind C-a send-prefix | |
# Turn the mouse on, but without copy mode dragging | |
set -g mouse on | |
unbind -n MouseDrag1Pane | |
unbind -Tcopy-mode MouseDrag1Pane | |
# 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 S-Left previous-window | |
bind -n S-Right next-window | |
# Change the default $TERM to tmux-256color | |
set -g default-terminal "tmux-256color" | |
# start with window/pane 1 (instead of 0) | |
set -g base-index 1 | |
set -g pane-base-index 1 | |
# COLORS: Windows & pane | |
set -g window-style fg=colour244,bg=colour232 | |
set -g window-active-style fg=brightwhite,bg=black | |
# set -g pane-border-bg colour232 | |
# set -g pane-border-fg colour244 | |
set -g pane-border-style fg=colour232,bg=colour244 | |
#set -g pane-active-border-bg default | |
# set -g pane-active-border-fg brightwhite | |
set -g pane-active-border-style fg=brightwhite,bg=default | |
# COLORS: Status bar | |
# set -g status-fg brightwhite | |
# set -g status-bg colour234 | |
#set -g status-attr none | |
set -g status-style fg=brightwhite,bg=colour234 | |
# setw -g window-status-fg default | |
# setw -g window-status-bg default | |
#setw -g window-status-attr dim | |
setw -g window-status-style fg=default,bg=default | |
# setw -g window-status-current-fg brightwhite | |
# setw -g window-status-current-bg colour238 | |
# setw -g window-status-current-attr bold | |
setw -g window-status-current-style fg=brightwhite,bg=colour238,bold | |
# setw -g window-status-bell-fg brightyellow | |
# setw -g window-status-bell-bg default | |
# setw -g window-status-bell-attr bold | |
setw -g window-status-bell-style fg=brightyellow,bg=default,bold | |
#setw -g window-status-activity-fg brightyellow | |
#setw -g window-status-activity-bg default | |
# setw -g window-status-activity-attr bold | |
setw -g window-status-activity-style bold | |
# FORMATS: Status bar | |
set -g status-left '#{?client_prefix,#[bg=colour4]*,}#[bg=default][#S] ' | |
# COLORS: Messages | |
#set -g message-fg default | |
# set -g message-bg brightyellow | |
#set -g message-attr bright | |
# set -g message-style fg=default,bg=yellow | |
# enable activity alerts | |
setw -g monitor-activity on | |
set -g visual-activity off | |
setw -g visual-bell on | |
setw -g bell-action other | |
# # Some tweaks to the status line | |
# set -g status-right "%H:%M" | |
# set -g window-status-current-attr "underscore" | |
# # If running inside tmux ($TMUX is set), then change the status line to red | |
# %if #{TMUX} | |
# set -g status-bg red | |
# %endif | |
# # Enable RGB colour if running in xterm(1) | |
# set-option -sa terminal-overrides ",xterm*:Tc" | |
# # Keep windows around after they exit | |
# set -g remain-on-exit on | |
# # Some extra key bindings to select higher numbered windows | |
# bind F1 selectw -t:10 | |
# bind F2 selectw -t:11 | |
# bind F3 selectw -t:12 | |
# # Keys to toggle monitoring activity in a window, and synchronize-panes | |
# bind m set monitor-activity | |
# bind y set synchronize-panes\; display 'synchronize-panes #{?synchronize-panes,on,off}' | |
# # Create a single default session, because a session is created here, tmux | |
# # should be started with "tmux attach" rather than "tmux new" | |
# new -d -s0 -nirssi 'exec irssi' | |
# set -t0:0 monitor-activity on | |
# set -t0:0 aggressive-resize on | |
# neww -d -ntodo 'exec emacs ~/TODO' | |
# setw -t0:1 aggressive-resize on | |
# neww -d -nmutt 'exec mutt' | |
# setw -t0:2 aggressive-resize on | |
# neww -d | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment