Last active
September 8, 2023 08:32
-
-
Save MateusTymoniuk/b427ff07895704d47c670d497079ddae to your computer and use it in GitHub Desktop.
Useful configurations for tmux
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 | |
set-option -g prefix C-a | |
bind-key C-a send-prefix | |
bind r source-file ~/.tmux.conf | |
set -g base-index 1 | |
# use mouse scrolling | |
set -g mouse on | |
# vim-like pane switching | |
bind -r ^ last-window | |
bind -r k select-pane -U | |
bind -r j select-pane -D | |
bind -r h select-pane -L | |
bind -r l select-pane -R | |
# Set new panes to open in current directory | |
bind '"' split-window -c "#{pane_current_path}" | |
bind % split-window -h -c "#{pane_current_path}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment