# Configured by Aaron Madved # This file is copyright free (public domain). # turn pane sync on/off bind -r y setw synchronize-panes # override Enter in copy-mode to write selected text /tmp/buf for yyy/ppp unbind -T copy-mode Enter unbind -T copy-mode-vi Enter bind -T copy-mode Enter send-keys -X copy-selection-and-cancel \; save-buffer /tmp/buf bind -T copy-mode-vi Enter send-keys -X copy-selection-and-cancel \; save-buffer /tmp/buf # reload configuration bind -r r source-file ~/.tmux.conf \; display "Config reloaded" # add double-tap meta key to toggle last window bind-key C-a last-window # use a different prefix for nested bind-key -n C-y send-prefix # pane colors and display # create more intuitive split key combos (same as modern screen) unbind | bind | split-window -h bind '\' split-window -h bind 'C-\' split-window -h unbind - bind - split-window -v unbind _ bind _ split-window -v # kill current window and all panes bind-key & kill-window # vi for copy mode setw -g mode-keys vi # vi for command status set -g status-keys vi # vi keys to resize bind -r C-k resize-pane -U 1 bind -r C-j resize-pane -D 1 bind -r C-h resize-pane -L 1 bind -r C-l resize-pane -R 1 # vi keys to navigate panes bind -r k select-pane -U bind -r j select-pane -D bind -r h select-pane -L bind -r l select-pane -R # avoid cursor movement messing with resize set -g repeat-time 200 set -g clock-mode-style 12 set-option -g clock-mode-colour yellow set -g base-index 1 setw -g pane-base-index 1 # very unique Mac bug if-shell "type 'reattach-to-user-namespace' >/dev/null" "set -g default-command 'reattach-to-user-namespace -l $SHELL'" set -g status-bg default set -g status-position top set -g status-interval 1 set -g status-left "" set -g status-right-length 50 set -g status-right "#(pomo)" set -g message-style "fg=red" # disable status bar (prefer index) set -g status off set -g window-status-current-format "" # better window names set -g automatic-rename # start with 1 set -g base-index 1 set -g pane-base-index 1 # form vim/tmux d/y buffer sync set -g focus-events # Set default terminal and 256 colors set-option -g default-terminal "xterm-256color" set-option -ga terminal-overrides ",xterm-256color:Tc"