Created
June 30, 2015 12:33
-
-
Save caroman/d42b281b1a29b384891a to your computer and use it in GitHub Desktop.
My TMUX configuration file
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
# Make shift+arrows, ctrl+arrows etc work in Vim. | |
set -g xterm-keys on | |
# Highlight the active window in the status bar. | |
set-window-option -g window-status-current-bg yellow | |
set-window-option -g window-status-current-fg black | |
# Maximize pane, e.g. for copying. | |
#bind-key z resize-pane -Z | |
# Reload tmux conf | |
unbind r | |
bind r source-file ~/.tmux.conf\; display "Reloaded conf." | |
bind-key -n C-S-Left swap-window -t -1 | |
bind-key -n C-S-Right swap-window -t +1 | |
# Use vim keybindings in copy mode | |
setw -g mode-keys vi | |
# Use vim keybindings in copy mode | |
#bind-key -t vi-copy v begin-selection | |
#bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy" | |
# Update default binding of `Enter` to also use copy-pipe | |
#unbind -t vi-copy Enter | |
#bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy" | |
set-window-option -g mode-keys vi | |
# List of plugins | |
# Supports `github_username/repo` or full git repo URLs | |
set -g @tpm_plugins ' \ | |
tmux-plugins/tpm \ | |
tmux-plugins/tmux-sensible \ | |
tmux-plugins/tmux-resurrect \ | |
tmux-plugins/tmux-yank \ | |
tmux-plugins/tmux-open \ | |
' | |
# Other examples: | |
# github_username/plugin_name \ | |
# git@github.com/user/plugin \ | |
# git@bitbucket.com/user/plugin \ | |
# Initializes TMUX plugin manager. | |
# Keep this line at the very bottom of tmux.conf. | |
run-shell '~/.tmux/plugins/tpm/tpm' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment