Created
March 24, 2017 10:50
-
-
Save chmodx/cffff61309e33a69cde24445a3ee5695 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
# reload config file | |
bind r source-file ~/.tmux.conf \; display "Config Reloaded!" | |
# tmux display things in 256 colors | |
set -g default-terminal "screen-256color" | |
set -g status-utf8 on | |
set-option -g allow-rename off | |
# copy & paste shortcuts | |
set-window-option -g mode-keys vi | |
set -g mouse on | |
bind P paste-buffer | |
bind-key -t vi-copy 'v' begin-selection | |
bind-key -t vi-copy 'y' copy-selection | |
bind-key -t vi-copy 'r' rectangle-toggle | |
bind -t vi-copy y copy-pipe "xclip -sel clip -i" | |
# pane movement shortcuts | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
# Resize pane shortcuts | |
bind -r H resize-pane -L 10 | |
bind -r J resize-pane -D 10 | |
bind -r K resize-pane -U 10 | |
bind -r L resize-pane -R 10 | |
set -g history-limit 20000 | |
setw -g mouse on | |
bind-key -t vi-copy PPage page-up | |
bind-key -t vi-copy NPage page-down | |
bind-key -T root PPage if-shell -F "#{alternate_on}" "send-keys PPage" "copy-mode -e; send-keys PPage" | |
bind-key -t vi-copy PPage page-up | |
bind-key -t vi-copy NPage page-down | |
bind -T root WheelUpPane if-shell -F -t = "#{alternate_on}" "select-pane -t =; send-keys -M" "select-pane -t =; copy-mode -e; send-keys -M" | |
bind -T root WheelDownPane if-shell -F -t = "#{alternate_on}" "select-pane -t =; 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 | |
# make delay shorter | |
set -sg escape-time 0 | |
# Theme | |
setw -g status-bg "#333333" | |
# Border colors | |
setw -g pane-active-border-fg "#8DB5DA" | |
set-window-option -g status-left " #S " | |
set-window-option -g status-left-fg "#333333" | |
set-window-option -g status-left-bg "#8DB5DA" | |
set-window-option -g status-right " %H:%M %d-%b-%y " | |
set-window-option -g status-right-fg "#333333" | |
set-window-option -g status-right-bg "#8DB5DA" | |
# Window Status Color Palette | |
setw -g window-status-current-fg "#8DB5DA" | |
setw -g window-status-current-bg "#454545" | |
setw -g window-status-fg "#808080" | |
setw -g window-status-bg "#333333" | |
# Message colors | |
setw -g message-bg "#353535" | |
setw -g message-fg "#8DB5DA" | |
#Windows list colors | |
setw -g mode-bg "#8DB5DA" | |
setw -g mode-fg "#333333" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For use it default from in terminal add follow code in your .bashrc
if [[ ! $TERM =~ screen ]]; then exec tmux fi