Created
April 13, 2018 18:27
-
-
Save lucasmarqs/e677a32a8a44d69448b8a8aef4dda8c4 to your computer and use it in GitHub Desktop.
tmux.conf
This file contains hidden or 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
#------------------------------------------------------------------------------- | |
# POWER ALL THE LINE! | |
# run-shell "powerline-daemon -q" | |
# source "$HOME/workspace/powerline/powerline/bindings/tmux/powerline.conf" | |
# edit configuration | |
bind e new-window -n '~/.tmux.conf' "sh -c '\${EDITOR} ~/.tmux.conf && tmux source ~/.tmux.conf && tmux display \"~/.tmux.conf sourced\"'" | |
#------------------------------------------------------------------------------- | |
# List of plugins | |
# dont forget to install [TPM](https://github.com/tmux-plugins/tpm) | |
# git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm | |
set -g @plugin 'tmux-plugins/tpm' | |
set -g @plugin 'tmux-plugins/tmux-sensible' | |
set -g @plugin 'tmux-plugins/tmux-open' | |
set -g @plugin 'tmux-plugins/tmux-copycat' | |
set -g @plugin 'tmux-plugins/tmux-yank' | |
set -g @plugin 'tmux-plugins/tmux-pain-control' | |
set -g @plugin 'christoomey/vim-tmux-navigator' | |
# Other examples: | |
# set -g @plugin 'github_username/plugin_name' | |
# set -g @plugin '[email protected]/user/plugin' | |
# set -g @plugin '[email protected]/user/plugin' | |
# enable tmu-sensible settings | |
set -g @almost-sensible 'on' | |
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) | |
run '~/.tmux/plugins/tpm/tpm' | |
#------------------------------------------------------------------------------- | |
# Custom config | |
# change default status bar colors | |
set -g status-bg colour23 | |
set -g status-fg colour253 | |
# use vim key bindings | |
setw -g mode-keys 'vi' | |
# set lower escape time | |
set-option -sg escape-time 10 | |
# set default-terminal | |
set -g default-terminal "screen-256color" | |
# re-number windows when one is closed | |
set -g renumber-windows 'on' | |
# change tmux prefix | |
unbind C-b | |
set -g prefix C-a | |
bind C-a send-prefix | |
# start windows numbering at 1 | |
set -g base-index 1 | |
# custom bindings | |
bind C-l send-keys 'C-l' # clear terminal | |
# vi selection/copy | |
unbind-key -T copy-mode-vi v | |
bind-key -T copy-mode-vi 'v' send -X begin-selection # begin selecion in copy mode | |
bind-key -T copy-mode-vi 'C-v' send -X rectangle-toggle # begin selecion in copy mode | |
bind-key -T copy-mode-vi 'y' send -X copy-selection # yank selection in copy mode | |
# Patch for OS X pbpaste and pbcopy under tmux. | |
set-option -g default-command "which reattach-to-user-namespace > /dev/null && reattach-to-user-namespace -l $SHELL || $SHELL" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment