Created
February 12, 2014 20:10
-
-
Save brianredbeard/8963552 to your computer and use it in GitHub Desktop.
A better starting tmux config. Live like screen, but better
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 CTRL+a the 'prefix' ala screen. | |
bind C-a send-prefix | |
set -g prefix C-a | |
# get rid of the tmux standard of CTRL+b | |
unbind C-b | |
set -s escape-time 1 | |
set -g base-index 1 | |
setw -g pane-base-index 1 | |
# make it easy to reload the config (CTRL+r) | |
bind r source-file ~/.tmux.conf \; display "Config reloaded!" | |
# HA! SEE THIS SCREEN? WE CAN SPLIT BOTH WAYS WITHOUT BREAKING VERSIONS. | |
bind | split-window -h | |
bind - split-window -v | |
# and it was said... GIVE ME VI BINDINGS | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
bind -r C-h select-window -t :- | |
bind -r C-l select-window -t :+ | |
# make it bigger, make it smaller | |
bind -r H resize-pane -L 5 | |
bind -r J resize-pane -D 5 | |
bind -r K resize-pane -U 5 | |
bind -r L resize-pane -R 5 | |
#disabling mouse mode just to force myself to learn more of the commands | |
setw -g mode-mouse off | |
set -g mouse-select-pane off | |
set -g mouse-resize-pane off | |
set -g mouse-select-window off | |
#setting the colors | |
set -g status-fg white | |
set -g status-bg black | |
setw -g window-status-fg cyan | |
setw -g window-status-bg default | |
setw -g window-status-attr dim | |
setw -g window-status-current-fg white | |
setw -g window-status-current-bg red | |
setw -g window-status-current-attr bright | |
# moar colorz | |
set -g pane-border-fg green | |
set -g pane-border-bg black | |
set -g pane-active-border-fg black | |
set -g pane-active-border-bg green | |
set -g allow-rename off | |
set -g status-left-length 40 | |
set -g status-left "#[fg=green]Session: #S #[fg=yellow]#I #[fg=cyan]#P" | |
# we live in the 21st century. people besides americans use computers. | |
# get used to it. | |
set -g status-utf8 on | |
# no more front and back, side to side. keep it centered. | |
set -g status-justify centre | |
setw -g monitor-activity on | |
set -g visual-activity on | |
# keep envs from the desktop to allow for better forwarding | |
set-option -g update-environment 'DISPLAY SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION WINDOWID XAUTHORITY DBUS_SESSION_BUS_ADDRESS' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment