1
0
Files
dotfiles/dot_tmux.conf
2024-08-01 19:15:15 +03:00

43 lines
1.0 KiB
Plaintext

# interferes with terminal mouse usage
# set -g mouse-select-window on
# set -g mouse-select-pane on
set-window-option -g xterm-keys on
set -sg escape-time 0
# start windows and panes at 1, not 0
set -g base-index 1
set -g pane-base-index 1
set-window-option -g pane-base-index 1
set-option -g renumber-windows on
# prefix key
unbind C-b
set-option -g prefix C-space
bind C-space send-prefix
# use Alt-arrow keys without prefix key to switch panes
#bind -n M-Left select-pane -L
#bind -n M-Right select-pane -R
#bind -n M-Up select-pane -U
#bind -n M-Down select-pane -D
# shift arrow to switch windows
bind -n S-Left previous-window
bind -n S-Right next-window
# inherit current path
bind c new-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind '"' split-window -v -c "#{pane_current_path}"
# use fish shell if available
if-shell '[ -x /usr/bin/fish ]' {
set -g default-shell /usr/bin/fish
}
# use custom shell if configured with ENV
if-shell -F $TMUX_SHELL {
set -g default-shell $TMUX_SHELL
}