Last active
November 26, 2018 11:41
-
-
Save xetys/5f1c6e20441e2806ee01256f6df70bfd to your computer and use it in GitHub Desktop.
tmux dotfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unbind C-b | |
set-option -g prefix C-x | |
bind-key C-x send-prefix | |
bind -n M-Left select-pane -L | |
bind -n M-Right select-pane -R | |
bind -n M-Up select-pane -U | |
bind -n M-Down select-pane -D | |
# reload config file (change file location to your the tmux.conf you want to use) | |
bind r source-file ~/.tmux.conf | |
bind e split-window -h -c "#{pane_current_path}" | |
bind E split-window -v -c "#{pane_current_path}" | |
set-window-option -g mode-keys vi | |
#bind-key -T vi-copy 'v' begin-selection | |
#bind-key -T vi-copy 'y' copy-selection | |
bind-key -Tcopy-mode-vi 'v' send -X begin-selection | |
bind-key -Tcopy-mode-vi 'y' send -X copy-selection | |
# mouse stuff | |
set -g mouse on | |
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e'" | |
unbind -n -Tcopy-mode-vi MouseDragEnd1Pane | |
bind -Tcopy-mode-vi MouseDragEnd1Pane send -X copy-selection-and-cancel\; run "tmux save-buffer - | xclip -i -sel clipboard > /dev/null" | |
# make ctrl left/right jump over words | |
set-window-option -g xterm-keys on | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment