You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
965 B
37 lines
965 B
set -g default-command /usr/bin/zsh |
|
|
|
set -g default-terminal "tmux-256color" |
|
|
|
# disable mouse mode (to use selection mode from current terminal) |
|
set-option -g mouse off |
|
|
|
# copy mode |
|
setw -g mode-keys vi |
|
set -g set-clipboard on |
|
set -g allow-passthrough on |
|
|
|
bind-key -T copy-mode-vi 'v' send -X begin-selection |
|
bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel |
|
|
|
# single-line scrolling in copy mode |
|
bind-key -T copy-mode-vi WheelUpPane send-keys -X scroll-up |
|
bind-key -T copy-mode-vi WheelDownPane send-keys -X scroll-down |
|
|
|
# scrolling with shift + pup/pdown |
|
bind-key -n S-Pageup copy-mode -u |
|
bind-key -n S-Pagedown send-keys Pagedown |
|
|
|
# Home/End for line navigation |
|
bind-key -n Home send-key C-a |
|
bind-key -n End send-key C-e |
|
|
|
# set status bar color |
|
set -g status-bg "dark cyan" |
|
|
|
# window rename |
|
set-option -g status-interval 5 |
|
set-option -g automatic-rename on |
|
set-option -g automatic-rename-format '#{b:pane_current_command}:#{b:pane_current_path}' |
|
|
|
|
|
|
|
|