Last active
April 5, 2017 20:38
-
-
Save mario21ic/853186f51186c282d2976ef59602c450 to your computer and use it in GitHub Desktop.
Configuration personal of tmux based in http://rendon.x10.mx/?p=305
This file contains hidden or 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
# Soporte para 256 colores. | |
set -g default-terminal "screen-256color" | |
# Soporte para Ctrl arrows | |
set-window-option -g xterm-keys on | |
# Cambiar PREFIX a Ctrl + a | |
set-option -g prefix C-a | |
unbind-key C-b | |
bind-key C-a send-prefix | |
# Como dividir la pantalla de forma más intuitiva | |
# | en vez de % | |
bind | split-window -h | |
# - en vez de " | |
bind - split-window -v | |
# Cambiando el el atajo para entrar al modo copy. | |
bind-key e copy-mode | |
# Modo vi y atajos | |
setw -g mode-keys vi | |
bind-key -t vi-copy 'v' begin-selection | |
bind-key -t vi-copy 'y' copy-selection | |
# Presiona PREFIX + [jkhl] | |
# para cambiar de panel | |
unbind-key j | |
bind-key j select-pane -D | |
unbind-key k | |
bind-key k select-pane -U | |
unbind-key h | |
bind-key h select-pane -L | |
unbind-key l | |
bind-key l select-pane -R | |
# Presiona Ctrl + a + [jkhl] | |
# para redimensionar panel | |
bind-key C-a-j resize-pane -D 2 | |
bind-key C-a-k resize-pane -U 2 | |
bind-key C-a-h resize-pane -L 4 | |
bind-key C-a-l resize-pane -R 4 | |
# Color de fondo y de letra | |
set -g status-bg black | |
set -g status-fg white | |
# Leyendas que se deben mostrar | |
# A la izquierda el nombre del host | |
# y a la derecha la fecha | |
set -g status-left '#[fg=green]#H' | |
set -g status-right '#[fg=yellow]#(date)' | |
# Color de la ventana activa | |
set-window-option -g window-status-current-bg blue | |
# Color del panel activo | |
set-option -g pane-active-border-fg colour027 | |
# longitud historial | |
set -g history-limit 10000 | |
# recargar | |
unbind r | |
bind r source-file ~/.tmux.conf | |
# Copiar texto al portapapeles | |
bind C-c run "tmux save-buffer - | xclip -i -selection clipboard" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment