Last active
October 26, 2018 18:04
-
-
Save rubystream/6114cd76d36325e6cb6c1b5962f29cd5 to your computer and use it in GitHub Desktop.
My tmux.conf
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 C-b as the default prefix | |
unbind C-b | |
# Set new default prefix | |
set-option -g prefix ` | |
set -g default-terminal "screen-256color" | |
set -g default-shell $SHELL | |
set -g default-command "reattach-to-user-namespace -l ${SHELL}" | |
# List of plugins | |
set -g @plugin 'tmux-plugins/tpm' | |
set -g @plugin 'tmux-plugins/tmux-copycat' | |
set -g @plugin 'tmux-plugins/tmux-yank' | |
set -g @plugin 'tmux-plugins/tmux-sensible' | |
set -g @plugin 'seebi/tmux-colors-solarized' | |
set -g @plugin 'tmux-plugins/tmux-sidebar' | |
set -g @plugin 'tmux-plugins/tmux-open' | |
set -g @plugin 'jooize/tmux-powerline-theme' | |
# Other examples: | |
# set -g @plugin 'github_username/plugin_name' | |
# set -g @plugin 'git@github.com/user/plugin' | |
# set -g @plugin 'git@bitbucket.com/user/plugin' | |
# | |
# Powerline theme | |
# | |
# Enable Powerline symbols (unless already specified otherwise in environment) | |
if-shell ': ${TMUX_POWERLINE_SYMBOLS?}' '' 'set-environment -g TMUX_POWERLINE_SYMBOLS "powerline"' | |
# Toggle between Powerline and Unicode symbols with ^B P | |
bind-key P if-shell 'test $(echo "${TMUX_POWERLINE_SYMBOLS}") = "unicode"' 'set-environment -g TMUX_POWERLINE_SYMBOLS "powerline" ; run-shell "$HOME/.tmux/plugins/powerline-theme/powerline-theme.tmux"' 'set-environment -g TMUX_POWERLINE_SYMBOLS "unicode" ; run-shell "$HOME/.tmux/plugins/tmux-powerline-theme/powerline-theme.tmux"' | |
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) | |
run '~/.tmux/plugins/tpm/tpm' | |
# Keybind preference | |
setw -g mode-keys vi | |
set-option -g status-keys vi | |
# Moving between panes with vim movement keys | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
# Window Cycle/Swap | |
bind e previous-window | |
bind f next-window | |
bind E swap-window -t -1 | |
bind F swap-window -t +1 | |
# Set the base index for windows to 1 instead of 0 | |
set-option -g base-index 1 | |
setw -g pane-base-index 1 | |
setw -g base-index 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment