-
-
Save jansanchez/7896817 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
#seteamos el prefijo | |
set -g prefix C-a | |
#limpiamos la combinación por defecto | |
unbind C-b | |
#cambiando el delay por default de ejecución de comandos de tmux | |
set -sg escape-time 1 | |
bind C-a send-prefix | |
#establaciendo los paneles y los indices de ventanas para los windows | |
set -g base-index 1 | |
#para los panes | |
set -g pane-base-index 1 | |
#personalizando los atajos, comandos y los input de usuario | |
#creando un atajo para recargar la configuracion | |
bind r source-file ~/.tmux.conf \; display 'Recargado!' | |
#se puede agregar mas sentencias con la combinacion de caracteres \; | |
#cortando panes | |
bind | split-window -h | |
bind - split-window -v | |
#moviendome a través de los panes | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
#rápida selección de pane | |
bind -r C-h select-window -t :- | |
bind -r C-l select-window -t :+ | |
#redimension de pane | |
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 | |
#soporte para mouse - establaciendo como activado si es que se quiere usar el mouse | |
setw -g mode-mouse off | |
set -g mouse-select-pane off | |
set -g mouse-resize-pane off | |
set -g mouse-select-window off | |
#estableciendo al terminal en modo 256color | |
set -g default-terminal "screen-256color" | |
#habilitando alertas de actividad | |
setw -g monitor-activity on | |
set -g visual-activity on | |
#estableciendo el estado de los colores de linea | |
set -g status-fg white | |
set -g status-bg black | |
#establaciendo el color de la lista del window | |
setw -g window-status-fg cyan | |
setw -g window-status-bg default | |
setw -g window-status-attr dim | |
#establaciendo el color del window actual | |
setw -g window-status-current-fg white | |
setw -g window-status-current-bg red | |
setw -g window-status-current-attr bright | |
#colores de panel | |
set -g pane-border-fg green | |
set -g pane-border-bg black | |
set -g pane-active-border-fg white | |
set -g pane-active-border-bg yellow | |
#command / linea de mensaje | |
set -g message-fg white | |
set -g message-bg black | |
set -g message-attr bright | |
#status line left side | |
set -g status-left-length 40 | |
set -g status-left "#[fg=green]Session: #S #[fg=yellow]#I #[fg=cyan]#P" | |
set -g status-utf8 on | |
# Status line right side | |
# 15% | 28 Nov 18:15 | |
set -g status-right "#(~/battery Discharging) | #[fg=cyan]%d %b %R" | |
# Update the status bar every sixty seconds | |
set -g status-interval 60 | |
# Center the window list | |
set -g status-justify centre | |
# enable vi keys. | |
setw -g mode-keys vi | |
# Open panes in the same directory using the tmux-panes script | |
#unbind v | |
#unbind n | |
#send-keys " ~/tmux-panes -h" C-m | |
#send-keys " ~/tmux-panes -v" C-m | |
# Maximize and restore a pane | |
unbind Up | |
bind Up new-window -d -n tmp \; swap-pane -s tmp.1 \; select-window -t tmp | |
unbind Down | |
bind Down last-window \; swap-pane -s tmp.1 \; kill-window -t tmp | |
# Log output to a text file on demand | |
bind P pipe-pane -o "cat >>~/#W.log" \; display "Toggled logging to ~/#W.log" | |
TERM=screen-256color |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment