Last active
July 19, 2017 19:18
-
-
Save cliffom/2514cbfc80233f715d7f34ad57adfb92 to your computer and use it in GitHub Desktop.
My tmux configuration
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
set -g default-terminal "screen-256color" | |
# mouse support | |
set-option -g mouse on | |
# force a reload of the config file | |
unbind r | |
bind r source-file ~/.tmux.conf | |
# remap prefix to Control + a | |
set -g prefix C-a | |
unbind C-b | |
bind C-a send-prefix | |
# Splitting | |
unbind % | |
unbind '"' | |
bind v split-window -v -c "#{pane_current_path}" | |
bind h split-window -h -c "#{pane_current_path}" | |
# Copy and Paste | |
setw -g mode-keys vi | |
bind-key -T copy-mode-vi v send-keys -X begin-selection | |
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy" | |
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy" | |
set -g default-command 'reattach-to-user-namespace $SHELL --login' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment