Created
June 10, 2017 04:59
-
-
Save MadebyAe/9326060b63aef4c620c3139dd7728ce3 to your computer and use it in GitHub Desktop.
Personal tmux Config
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
# remap prefix to Control + a | |
set -g prefix C-a | |
# bind 'C-a C-a' to type 'C-a' | |
bind C-a send-prefix | |
unbind C-b | |
# bind clear scrollbar | |
bind -n C-k clear-history | |
# clipboard | |
setw -g mode-keys vi | |
bind-key -n C-k send-keys -R \; clear-history | |
bind-key -Tcopy-mode-vi 'v' send -X begin-selection | |
bind-key -Tcopy-mode-vi 'y' send -X copy-pipe "reattach-to-user-namespace pbcopy" | |
# status line | |
set -g status-justify left | |
set -g status-bg default | |
set -g status-fg colour37 | |
set -g status-interval 2 | |
# border colours | |
set -g pane-border-fg colour240 | |
set -g pane-active-border-fg colour37 | |
# Mouse support in Tmux HEAD | |
set-option -g -q mouse on | |
# Start copy mode when scrolling up | |
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e; send-keys -M'" | |
# Plugins | |
set -g @plugin 'tmux-plugins/tpm' | |
set -g @plugin 'tmux-plugins/tmux-sensible' | |
set -g @plugin 'tmux-plugins/tmux-resurrect' | |
run '~/.tmux/plugins/tpm/tpm' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment