Skip to content

Instantly share code, notes, and snippets.

@gilgamezh
Last active May 22, 2017 20:37
Show Gist options
  • Save gilgamezh/5ffcfd55d1c9cedf106166aad01970ee to your computer and use it in GitHub Desktop.
Save gilgamezh/5ffcfd55d1c9cedf106166aad01970ee to your computer and use it in GitHub Desktop.
# Changing de prefix to Ctrl + a like GNU Screen
set -g prefix C-a
# Set de first windows to 1 instead cero.
set -g base-index 1
setw -g pane-base-index 1
# reload tmux config
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# Split panes keys
bind | split-window -h
bind - split-window -v
# Movement keys like vim.
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Resize with with upper vim keys
bind H resize-pane -L 5
bind J resize-pane -D 5
bind K resize-pane -U 5
bind L resize-pane -R 5
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
#sync panes
bind-key b set-window-option synchronize-panes
# set 256 colors
set -g default-terminal "screen-256color"
set -g terminal-overrides 'xterm:colors=256'
# set history to 10000
set -g history-limit 10000
#scroll fix
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
# set vi mode for copy paste and move.
set-window-option -g mode-keys vi
#Copy tmux paste buffer to CLIPBOARD
bind C-c run "tmux show-buffer | xclip -i -selection clipboard"
#Copy CLIPBOARD to tmux paste buffer and paste tmux paste buffer
bind C-v run "tmux set-buffer -- \"$(xclip -o -selection clipboard)\"; tmux paste-buffer";
#### COLOUR (Solarized 256)
# default statusbar colors
set-option -g status-bg colour235 #base02
set-option -g status-fg colour136 #yellow
set-option -g status-attr default
# default window title colors
set-window-option -g window-status-fg colour244 #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 colour166 #orange
set-window-option -g window-status-current-bg default
#set-window-option -g window-status-current-attr bright
# pane border
set-option -g pane-border-fg colour235 #base02
set-option -g pane-active-border-fg colour240 #base01
# message text
set-option -g message-bg colour235 #base02
set-option -g message-fg colour166 #orange
# pane number display
set-option -g display-panes-active-colour colour33 #blue
set-option -g display-panes-colour colour166 #orange
# clock
set-window-option -g clock-mode-colour colour64 #green
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment