summary |
log |
commit |
diff |
tree
raw |
patch |
inline | side by side (from parent 1:
c306f84)
- Unify setw to set (modern tmux auto-detects option scope)
- Add vi copy mode with v/y bindings
- Add clipboard and passthrough support
- Increase history-limit to 50000
- Add base-index 1 and pane-base-index 1
- Enable monitor-bell, change bell-action to other
- Quote ${HOME} in new-window binding
# Terminal and colors
set -g default-terminal 'xterm-256color'
# Terminal and colors
set -g default-terminal 'xterm-256color'
+set -g set-clipboard on
+set -g allow-passthrough on
-set -g history-limit 10000
+set -g history-limit 50000
set -g mouse on
set -g escape-time 0
set -g focus-events on
set -g mouse on
set -g escape-time 0
set -g focus-events on
+set -g base-index 1
+set -g pane-base-index 1
+set -g renumber-windows off
# Remap prefix from C-b to C-a
unbind C-b
# Remap prefix from C-b to C-a
unbind C-b
bind C-a send-prefix
# Window and pane management
bind C-a send-prefix
# Window and pane management
-bind c new-window -c ${HOME}
+bind c new-window -c "${HOME}"
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
bind C-a last-window
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
bind C-a last-window
set -g status-right-length 50
# Window status
set -g status-right-length 50
# Window status
-setw -g window-status-current-style fg=colour69,bg=colour253,bold
-setw -g window-status-current-format ' #I#[fg=colour250]:#[fg=colour233]#W#[fg=colour69]#F '
-setw -g window-status-style fg=colour131,bg=colour245,none
-setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour233]#W#[fg=colour131]#F '
-setw -g window-status-bell-style fg=colour255,bg=colour1,bold
+set -g window-status-current-style fg=colour69,bg=colour253,bold
+set -g window-status-current-format ' #I#[fg=colour250]:#[fg=colour233]#W#[fg=colour69]#F '
+set -g window-status-style fg=colour131,bg=colour245,none
+set -g window-status-format ' #I#[fg=colour237]:#[fg=colour233]#W#[fg=colour131]#F '
+set -g window-status-bell-style fg=colour255,bg=colour1,bold
# Pane borders
set -g pane-border-style fg=colour238,bg=colour235
# Pane borders
set -g pane-border-style fg=colour238,bg=colour235
set -g message-command-style fg=blue,bg=black
# Clock mode
set -g message-command-style fg=blue,bg=black
# Clock mode
-setw -g clock-mode-colour colour135
-setw -g mode-style fg=colour196,bg=colour238,bold
+set -g clock-mode-colour colour135
+set -g mode-style fg=colour196,bg=colour238,bold
# Quiet mode
set -g visual-activity off
set -g visual-bell off
set -g visual-silence off
# Quiet mode
set -g visual-activity off
set -g visual-bell off
set -g visual-silence off
-set -g bell-action none
-setw -g monitor-activity off
+set -g bell-action other
+set -g monitor-activity off
+set -g monitor-bell on
+
+# Vi copy mode
+set -g mode-keys vi
+bind -T copy-mode-vi v send-keys -X begin-selection
+bind -T copy-mode-vi y send-keys -X copy-selection-and-cancel
# Reload config
bind r source-file ~/.tmux.conf \; display-message "Config reloaded"
# Reload config
bind r source-file ~/.tmux.conf \; display-message "Config reloaded"