Created
October 5, 2020 22:26
-
-
Save rodorgas/e2811d59ffb44784f5684b75a36d1ae3 to your computer and use it in GitHub Desktop.
my 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 from 'C-b' to 'C-x' | |
unbind C-b | |
set-option -g prefix C-x | |
bind-key C-x send-prefix | |
# ctrl-a (not the prefix, but after) to go to last window | |
bind-key C-a last-window | |
# hot conf reload | |
bind r source-file ~/.tmux.conf | |
# more natural splits key bindings | |
unbind % | |
bind | split-window -h -c "#{pane_current_path}" | |
bind - split-window -v -c "#{pane_current_path}" | |
bind c new-window -c "#{pane_current_path}" | |
bind -n S-Left previous-window | |
bind -n S-Right next-window | |
# shift+(vertical arrows): up or down on panels on the current window | |
bind -n S-Up select-pane -U | |
bind -n S-Down select-pane -D | |
# Enable mouse control (clickable windows, panes, resizable panes) | |
setw -g mouse on | |
set -g default-shell $SHELL | |
if-shell 'test "$(uname)" = "Darwin"' 'source ~/.tmux-macos.conf' | |
# pane movement | |
bind-key J command-prompt -p "join pane from:" "join-pane -s '%%'" | |
bind-key S command-prompt -p "send pane to:" "join-pane -t '%%'" | |
bind -n C-k clear-history | |
# less delay for esc in vim | |
set -sg escape-time 0 | |
###################### | |
### DESIGN CHANGES ### | |
###################### | |
# loud or quiet? | |
set-option -g visual-activity off | |
set-option -g visual-bell off | |
set-option -g visual-silence off | |
set-window-option -g monitor-activity off | |
set-option -g bell-action none | |
set -g default-terminal "screen-256color" | |
# List of plugins | |
set -g @plugin 'tmux-plugins/tpm' | |
set -g @plugin 'tmux-plugins/tmux-sensible' | |
set -g @plugin 'tmux-plugins/tmux-yank' | |
set -g @plugin 'tmux-plugins/tmux-resurrect' | |
set -g @plugin 'jimeh/tmux-themepack' | |
set -g @themepack 'powerline/default/magenta' | |
#set -g @themepack 'powerline/default/gray' | |
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) | |
run '~/.tmux/plugins/tpm/tpm' | |
set-option -g allow-rename off | |
set -g status-right "#H" | |
# set -g status-right "#[fg=colour235,bg=colour233]#[fg=colour240,bg=colour235] #[fg=colour240,bg=colour235]#[fg=colour233,bg=colour240] %d-%b-%y #[fg=colour245,bg=colour240]#[fg=colour232,bg=colour245,bold] MBP " | |
bind e resize-pane -x 109 | |
bind-key -n F2 select-pane -t:.+ | |
bind-key -n F1 select-pane -t:.- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment