summaryrefslogtreecommitdiffstats
path: root/tmux/tmux.conf
diff options
context:
space:
mode:
Diffstat (limited to 'tmux/tmux.conf')
-rw-r--r--tmux/tmux.conf105
1 files changed, 105 insertions, 0 deletions
diff --git a/tmux/tmux.conf b/tmux/tmux.conf
new file mode 100644
index 0000000..009eca5
--- /dev/null
+++ b/tmux/tmux.conf
@@ -0,0 +1,105 @@
+# Opciones basicas
+set -gs default-terminal "tmux-256color" # Optional
+set -ga terminal-overrides ',xterm*:smcup@:rmcup@'
+set -g set-titles-string "#S > #{=-15:?window_name,#{window_name},#{s/ghoul/home/:?pane_current_path,#{b:pane_current_path},}} (#T)"
+set -g mode-keys vi
+set -g history-limit 102400
+set -sg escape-time 0
+set -g set-clipboard on
+set -g mouse on
+set -gq utf8 on
+set -gq status-utf8 on
+set -wg wrap-search off
+set -g focus-events on
+
+# Ventanas
+set -wg automatic-rename on
+set -g renumber-windows on
+set -g allow-rename on
+set -g base-index 1
+
+# Panes
+set -g pane-base-index 1
+set -g aggressive-resize on
+set -wg main-pane-width 80
+
+# Notificaciones
+set -g monitor-activity on
+set -g bell-action none
+
+# Statusbar
+set -g set-titles on
+set -g pane-border-status off
+set -g automatic-rename-format '#{s/ksh//:pane_current_command}'
+set -g pane-border-style bg=default,fg=colour3
+set -g pane-active-border-style bg=default,fg=colour3
+set -g mode-style fg=colour0,bg=colour100
+set -g message-command-style bg=colour0,fg=colour13
+set -g message-style bg=default,fg=colour7
+set -g status-style bg=default,fg=colour244
+set -g status-left ''
+set -g status-left-length 140
+set -g status-justify left
+set -g status-right '#[fg=colour13]%F #[fg=colour10]%R'
+set -g window-status-separator ''
+set -g window-status-current-style bg=default,fg=colour11
+set -g window-status-activity-style bg=default,fg=colour14
+set -g window-status-format '#{pane_current_command} '
+set -g window-status-current-format '#{pane_current_command} '
+
+# Limpiar atajos
+unbind-key C-b
+unbind-key '"'
+unbind-key %
+unbind-key -
+unbind-key Up
+unbind-key Down
+unbind-key Left
+unbind-key Right
+
+# Prefijo
+set -g prefix M-a
+bind a send-prefix
+
+# Varios
+bind-key M command-prompt -p man: "split-window -fh 'man %1'"
+#bind-key R source-file $XDG_CONFIG_HOME/tmux/tmux.conf \; display "Config Reloaded"
+bind-key R source-file $HOME/.tmux.conf \; display "Config Reloaded"
+
+# Dividir
+bind-key | split-window -h -c "#{pane_current_path}"
+bind-key - split-window -v -c "#{pane_current_path}"
+bind-key / split-window -fh -c "#{pane_current_path}"
+bind-key _ split-window -fv -c "#{pane_current_path}"
+
+# Cerrar
+bind-key x kill-pane
+bind-key X kill-window
+bind-key Z kill-session
+bind-key % delete-buffer
+
+# Paneles
+bind-key ( swap-pane -s :. -t :.- \; select-pane -t :.-
+bind-key ) swap-pane -s :. -t :.+ \; select-pane -t :.+
+bind-key Up select-pane -U
+bind-key Down select-pane -D
+bind-key Left select-pane -L
+bind-key Right select-pane -R
+
+# Ventanas
+bind-key < previous-window
+bind-key > next-window
+bind-key [ swap-window -t :-1 -d
+bind-key ] swap-window -t :+1 -d
+bind-key Tab choose-window
+bind-key Enter new-window
+bind-key w choose-tree -Zw "swap-window -t '%%'"
+bind-key p choose-tree -Zw "swap-pane -t '%%'"
+
+# Copy/paste. Seleccionar texto con el mouse lo copia automaticamente al clipboard
+bind-key b list-buffers
+bind-key B choose-buffer
+bind-key P capture-pane -S -32768 \; save-buffer "/tmp/printscreen" \; delete-buffer \; new-window -n "PRINTSCREEN" "$EDITOR /tmp/printscreen"
+bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -in -selection clipboard"
+
+# vim: set ft=tmux:
Un proyecto texto-plano.xyz