set -g default-command /usr/bin/zsh set -g default-terminal "xterm-256color" # disable mouse mode (to use selection mode from current terminal) set-option -g mouse off # copy mode setw -g mode-keys vi 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}'