Last active
October 3, 2020 13:39
-
-
Save surendharreddy/de88724ec4fa22620adffd50eeeed6ff to your computer and use it in GitHub Desktop.
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-key C-b | |
set-option -g prefix C-f | |
# Refresh with source file | |
bind-key R source-file ~/.tmux.conf | |
# Use zsh as default shell | |
set-option -g default-shell /bin/zsh | |
# Enable mouse support | |
setw -g mouse on | |
# Split panes | |
bind-key - split-window -v | |
bind-key | split-window -h | |
# Pane resizing | |
bind-key -r Up resize-pane -U 5 | |
bind-key -r Down resize-pane -D 5 | |
bind-key -r Left resize-pane -L 5 | |
bind-key -r Right resize-pane -R 5 | |
# Ctrl-Left/Right cycles thru windows (no prefix) | |
bind-key -n "C-h" select-window -t :- | |
# Ctrl-Up/Down cyles thru panes (no prefix) | |
bind-key -n "C-j" select-pane -t :.+ | |
# Clear current pane | |
bind-key -n "C-l" send-keys clear Enter | |
# Copy & paste | |
# Use vim keybindings in 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-keys -X copy-pipe-and-cancel "pbcopy" | |
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "pbcopy" | |
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "pbcopy" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment