.dotfiles/tmux/tmux.conf

45 lines
1.4 KiB
Plaintext
Raw Normal View History

2022-04-19 15:34:47 +02:00
# Reload config
bind-key C-r source-file ~/.tmux.conf \; display "Config reloaded!"
# Split Panes (additional shortcuts)
bind-key | split-window -h -c "#{pane_current_path}" # let's open pane with current directory with -c option
bind-key _ split-window -v -c "#{pane_current_path}"
# Move to other panes with Alt+[ArrowKey]
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
# Mouse support
set -g mouse on
bind -n WheelUpPane select-pane -t= \; copy-mode -e \; send-keys -M
bind -n WheelDownPane select-pane -t= \; send-keys -M
# Bigger history
set -g history-limit 10000
# Start windows/panes at 1 instead of 0
set-option -g base-index 1 # window index will start with 1
set-window-option -g pane-base-index 1 # pane index will start with 1
set-option -g renumber-windows on
# Colors
# Pane divider
set-window-option -g pane-border-style fg=colour11,bg=colour234
set-window-option -g pane-active-border-style fg=colour118,bg=colour234
# Cool trick: Let's dim out any pane that's not active.
set-window-option -g window-style fg=white,bg=colour236
set-window-option -g window-active-style fg=white,bg=colour235
# Command / Message line
set-window-option -g message-style fg=#111111,bold,bg=#eeeeee
# Status Bar
set-option -g status-style fg=white,bg=#8317dd
set-window-option -g window-status-separator |
2022-06-12 21:02:52 +02:00
# Set Terminal type
set -g default-terminal "xterm-256color"