Last active
March 22, 2024 05:50
-
-
Save alexkubica/ec805f8ebb7f0d3ea6d2b56997a5d78c to your computer and use it in GitHub Desktop.
Alex Kubica's tmux configuration 🤩
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-a' | |
unbind C-b | |
set-option -g prefix C-a | |
bind C-a send-prefix | |
# reload config file (change file location to your the tmux.conf you want to use) | |
bind r source-file ~/.tmux.conf\; display-message "Config reloaded" | |
# Enable mouse mode (tmux 2.1 and above) | |
set -g mouse on | |
# Disable auto rename for windows | |
#set allow-rename off | |
# set new panes to open in current directory | |
bind \" split-window -h -c "#{pane_current_path}" | |
bind % split-window -v -c "#{pane_current_path}" | |
# pane resizing | |
bind -r H resize-pane -L | |
bind -r J resize-pane -D | |
bind -r K resize-pane -U | |
bind -r L resize-pane -R | |
# vim-like scroll bindings | |
set -g mode-keys vi | |
bind -T copy-mode-vi v send -X begin-selection | |
bind -T copy-mode-vi V send -X select-line | |
# List of plugins | |
# requires tpm to be installed in advance: | |
# 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-yank' | |
# plugin breaks tmux | |
# set -g @plugin 'tmux-plugins/tmux-copycat' | |
# plugin breaks tmux | |
set -g @plugin 'tmux-plugins/tmux-resurrect' | |
set -g @plugin 'tmux-plugins/tmux-continuum' | |
set -g @plugin 'tmux-plugins/tmux-prefix-highlight' | |
set -g @plugin 'christoomey/vim-tmux-navigator' | |
set -g @plugin 'sainnhe/tmux-fzf' | |
#set -g @plugin 'erikw/tmux-powerline' | |
# vim-tmux-navigator overrides <Ctrl-L> so use prefix to make it work again | |
bind C-l send-keys 'C-l' | |
# on boot | |
set -g @continuum-boot 'on' | |
set -g @continuum-boot-options 'iterm,fullscreen' | |
# Automatic restore | |
set -g @continuum-restore 'on' | |
# Status | |
set -g pane-border-status top | |
set -g pane-border-format " [ ###P #T ] " | |
# key bindings | |
bind W run-shell -b "$HOME/.tmux/plugins/tmux-fzf/scripts/window.sh switch" | |
# 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