Created
September 19, 2016 21:21
-
-
Save abhiyerra/0abda035ab10df95563166748d70818b to your computer and use it in GitHub Desktop.
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 an interesting key for a prefix | |
set-option -g prefix ` | |
# set-option -g prefix C-a | |
set -sg escape-time 0 | |
#unbind-key C-b | |
bind-key C-a last-window | |
bind-key ` last-window | |
bind-key a send-prefix | |
bind-key m save-buffer /tmp/tmux-buffer \; run-shell "exec sh -c pbcopy < /tmp/tmux-buffer" | |
# 0 is too far from ` | |
set -g base-index 1 | |
# set-option -g default-terminal "screen-256color" | |
set-option -g mouse-select-pane on | |
set-option -g status-keys emacs | |
set-option -g bell-action any | |
set-option -g set-titles on | |
set-option -g set-titles-string '#H:#S.#I.#P #W #T' # window number,program name,active (or not) | |
set-option -g visual-bell on | |
setw -g mode-keys emacs | |
setw -g mode-mouse on | |
setw -g monitor-activity on | |
# splitting and cycling | |
set-option -g mouse-select-pane off | |
unbind % | |
bind | split-window -h # horizontal split | |
unbind '"' | |
bind _ split-window -v # vertical split | |
bind C-j previous-window | |
bind e previous-window | |
bind f next-window | |
set-option -g status-utf8 on | |
# set-option -g status-justify centre | |
set-option -g status-justify left | |
set-option -g status-bg black | |
set-option -g status-fg white | |
set-option -g status-left-length 40 | |
set-option -g pane-active-border-fg green | |
set-option -g pane-active-border-bg black | |
set-option -g pane-border-fg white | |
set-option -g pane-border-bg black | |
set-option -g message-fg black | |
set-option -g message-bg green | |
#setw -g mode-bg black | |
setw -g window-status-bg black | |
setw -g window-status-current-fg green | |
#setw -g window-status-alert-attr default | |
#setw -g window-status-alert-fg yellow | |
set -g status-left '#[fg=red]#H#[fg=green]:#[fg=white]#S #[fg=green]][#[default]' | |
set -g status-right '#[fg=green]][#[fg=white] #T #[fg=green]][ #[fg=blue]%Y-%m-%d #[fg=white]%H:%M#[default]' | |
#set -g status-right '#[fg=green]][ #[fg=blue]%Y-%m-%d #[fg=white]%H:%M#[default]' | |
set -g history-limit 100000 | |
# `+r reloads the configuration, handy | |
bind r source-file ~/.tmux.conf | |
set -ga update-environment "SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment