# ~/.config/tmux/tmux.conf, or .dotfiles/config/tmux/tmux.conf # # Contains configuration from the follwing sources: # - https://tmuxguide.readthedocs.io/en/latest/tmux/tmux.html # - # unbind default prefix and set it to ctrl-a unbind C-b set -g prefix C-a bind C-a send-prefix # make delay shorter set -sg escape-time 0 #### key bindings #### # reload config file bind r source-file ~/.dotfiles/config/tmux/tmux.conf \; display "tmux.conf reloaded!" # quickly open a new window bind N new-window # synchronize all panes in a window bind y setw synchronize-panes # pane movement shortcuts (same as vim) bind h select-pane -L bind j select-pane -D bind k select-pane -U bind l select-pane -R # enable mouse support for switching panes/windows #set -g mouse-utf8 on #set -g mouse on #### copy mode : vim #### # set vi mode for copy mode setw -g mode-keys vi # copy mode using 'Esc' unbind [ bind Escape copy-mode # start selection with 'space' and copy using 'y' #bind -t vi-copy 'y' copy-selection # paste using 'p' unbind p bind p paste-buffer