Created
May 16, 2018 10:54
-
-
Save alst74/1ea455a6ce4a02319ae54b19e0383654 to your computer and use it in GitHub Desktop.
Tmux config
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
# make the first window number start at 1 | |
set -g base-index 1 | |
# start with pane 1 | |
set -g pane-base-index 1 | |
# screen mode | |
#set -g default-terminal "screen" | |
#set -g default-terminal "linux" | |
set -g default-terminal "putty-256color" | |
# source config file | |
bind r source-file ~/.tmux.conf | |
# history | |
set -g history-limit 5000 | |
# allow terminal scrolling | |
set-option -g terminal-overrides 'xterm*:smcup@:rmcup@' | |
# use vi mode | |
setw -g mode-keys vi | |
set -g status-keys vi | |
setw -g utf8 on | |
# use mouse in copy mode | |
setw -g mode-mouse on | |
# splitting | |
#unbind % | |
#bind h split-window -h | |
#unbind '"' | |
#bind v split-window -v | |
# window switching | |
unbind n | |
bind = next-window | |
unbind p | |
bind - previous-window | |
bind -n C-Right next-window | |
bind -n C-Left previous-window | |
# with mouse (click on pretty little boxes) | |
set -g mouse-select-window on | |
# panes | |
set -g mouse-select-pane on | |
#set -g pane-active-border-attr blink | |
# resize panes with mouse (drag borders) | |
set -g mouse-select-pane on | |
set -g mouse-resize-pane on | |
# status line | |
set -g status-utf8 on | |
set -g status-justify left | |
set -g status-interval 2 | |
# Info on right (requires stlarch-terminusmod font) | |
set -g status-right-length 60 | |
set -g status-right '#[fg=brightred]#H #[fg=colour7]| #[fg=brightgreen]%a %H:%M' | |
# loud or quiet? | |
set-option -g visual-activity off | |
set-option -g visual-bell off | |
set-option -g visual-content off | |
set-option -g visual-silence off | |
set-window-option -g monitor-activity off | |
set-window-option -g monitor-content on | |
set-option -g bell-action none | |
# some key-binding changes | |
#bind x kill-pane | |
#bind X next-layout | |
#bind Z previous-layout | |
#### COLOUR (Solarized dark) | |
# default statusbar colors | |
set-option -g status-bg black #base02 | |
set-option -g status-fg yellow #yellow | |
set-option -g status-attr default | |
# default window title colors | |
set-window-option -g window-status-fg colour138 #base0 | |
set-window-option -g window-status-bg default | |
set-window-option -g window-status-attr dim | |
# active window title colors | |
set-window-option -g window-status-current-fg white | |
set-window-option -g window-status-current-bg red | |
#set-window-option -g window-status-current-attr bright | |
# pane border | |
set-option -g pane-border-fg red #base02 | |
set-option -g pane-active-border-fg red #base01 | |
# message text | |
set-option -g message-bg black #base02 | |
set-option -g message-fg brightred #orange | |
# pane number display | |
set-option -g display-panes-active-colour blue #blue | |
set-option -g display-panes-colour brightred #orange | |
# clock | |
set-window-option -g clock-mode-colour green #green |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment