-
-
Save fervisa/dea7fc6fa8e42b26bf59c8c885ecdc3d to your computer and use it in GitHub Desktop.
Configuración personal de tmux
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" | |
#set -g default-terminal "xterm-256color" | |
#Cambiar PREFIX a Ctrl + a | |
set-option -g prefix C-a | |
unbind-key C-b | |
bind-key C-a send-prefix | |
#dividir la pantalla a la forma de vim | |
bind s split-window -h -c '#{pane_current_path}' # Split panes horizontal | |
bind i split-window -v -c '#{pane_current_path}' # Split panes vertically | |
#Copiar en tmux | |
set -g mode-keys vi | |
bind-key -t vi-copy 'v' begin-selection | |
bind-key -t vi-copy 'y' copy-selection | |
#longitud de historial | |
set -g history-limit 50000 | |
# force a reload of the config file | |
bind r source-file ~/.tmux.conf \; display " ~/.tmux.conf Reloaded!" | |
#clear-screen | |
bind C-l send-keys 'C-l' | |
# Smart pane switching with awareness of vim splits | |
is_vim='echo "#{pane_current_command}" | grep -iqE "(^|\/)g?(view|n?vim?)(diff)?$"' | |
bind -n C-h if-shell "$is_vim" "send-keys C-h" "select-pane -L" | |
bind -n C-j if-shell "$is_vim" "send-keys C-j" "select-pane -D" | |
bind -n C-k if-shell "$is_vim" "send-keys C-k" "select-pane -U" | |
bind -n C-l if-shell "$is_vim" "send-keys C-l" "select-pane -R" | |
bind -n C-\ if-shell "$is_vim" "send-keys C-\\" "select-pane -l" | |
#enable scrolling in tmux panels and windows | |
set -g mouse off | |
# be more responsive, changing the default delay | |
set -sg escape-time 1 | |
# Start numbering at 1 | |
set -g base-index 1 | |
setw -g pane-base-index 1 | |
# pane colors | |
setw -g pane-border-style fg=white,bg=black | |
setw -g pane-active-border-style fg=cyan,bg=cyan | |
#### Barra inferior similar a Powerline | |
set -g status-interval 60 | |
set -g status-justify 'left' | |
set -g status-bg colour31 | |
set -g status-right-length 85 | |
set -g status-right "#(~/.tmux-powerline/tmux-powerline/powerline.sh right)" | |
set -g status-left-length 30 | |
set -g status-left '#[fg=colour234,bg=colour31] #[fg=colour16,bg=colour254] Sesión: #S #[fg=colour254,bg=colour234] ' | |
set -g window-status-current-format '#[fg=colour117,bg=red] #I #[fg=colour231] #W #[fg=colour231] #(uptime | cut -f 4-5 -d " " | cut -f 1 -d ",") hrs#[fg=yellow,bold] «\(¬_¬)/»' | |
#Agregar soporte para copiar | |
run-shell ~/.tmux-plugin/tmux-yank/yank.tmux |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment