Created
September 11, 2019 03:01
-
-
Save desnor/44bf1aabdb775ab11216d7d46909744a 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
# Bind to backtick | |
unbind C-b | |
set-option -g prefix ` | |
bind ` send-prefix | |
# Start numbering at 1 | |
set -g base-index 1 | |
# Allows for faster key repetition | |
set -s escape-time 0 | |
# Rather than constraining window size to the maximum size of any client | |
# connected to the *session*, constrain window size to the maximum size of any | |
# client connected to *that window*. Much more reasonable. | |
setw -g aggressive-resize on | |
# Activity monitoring | |
#setw -g monitor-activity on | |
#set -g visual-activity on | |
# Example of using a shell command in the status line | |
#set -g status-right "#[fg=yellow]#(uptime | cut -d ',' -f 2-)" | |
# Allow mouse wheel scrolling | |
set -g mouse on | |
# List of plugins | |
set -g @plugin 'tmux-plugins/tpm' | |
set -g @plugin 'tmux-plugins/tmux-sensible' | |
set -g @plugin 'tmux-plugins/tmux-resurrect' | |
set -g @plugin 'tmux-plugins/tmux-yank' | |
set -g @plugin 'tmux-plugins/open' | |
set -g @plugin 'jimeh/tmux-themepack' | |
set -g @themepack 'powerline/double/magenta' | |
# set -g @themepack 'powerline/block/blue' | |
# VI goodness | |
set-window-option -g mode-keys vi | |
# vim pane navigation | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
# go back to the last window | |
bind b last-window | |
# Increase buffer | |
set-option -g history-limit 20000 | |
# Allow usage of mouse | |
# set-option -g mouse on | |
bind % split-window -h -c '#{pane_current_path}' | |
bind '"' split-window -v -c '#{pane_current_path}' | |
bind c new-window -c '#{pane_current_path}' | |
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) | |
run '~/.tmux/plugins/tpm/tpm' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment