2018-05-28 21:02:56 +00:00
|
|
|
# Reload tmux config
|
|
|
|
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."
|
|
|
|
|
|
|
|
set -sg escape-time 0
|
|
|
|
|
2021-09-11 22:56:48 +00:00
|
|
|
set -g default-terminal "tmux-256color"
|
|
|
|
|
|
|
|
set-window-option -g mode-keys vi
|
2018-05-28 21:02:56 +00:00
|
|
|
|
2018-05-28 21:32:57 +00:00
|
|
|
# disable automatic window renaming
|
2018-08-09 15:38:44 +00:00
|
|
|
set-window-option -g status-interval 1
|
2018-05-28 21:32:57 +00:00
|
|
|
set-window-option -g automatic-rename on
|
2018-08-09 15:38:44 +00:00
|
|
|
set-window-option -g automatic-rename-format "#{pane_current_command}"
|
2022-09-10 12:17:35 +00:00
|
|
|
set-window-option -g allow-rename on
|
2018-05-28 21:32:57 +00:00
|
|
|
|
2018-05-28 21:02:56 +00:00
|
|
|
# window status
|
2022-11-09 20:02:28 +00:00
|
|
|
setw -g window-status-format "#[bg=colour243,fg=colour233] #I #(basename #{pane_current_path})>#W "
|
|
|
|
setw -g window-status-current-format "#[bg=colour248,fg=colour233,bold] #I #(basename #{pane_current_path})>#W "
|
2018-05-28 21:02:56 +00:00
|
|
|
|
|
|
|
# The statusbar
|
|
|
|
set -g status-interval 2
|
|
|
|
set -g status-position bottom
|
2021-09-11 20:59:39 +00:00
|
|
|
set -g status-bg black
|
|
|
|
set -g status-fg white
|
|
|
|
set -g status-left '#[fg=colour250] (#S) '
|
|
|
|
set -g status-right '#[fg=colour250,bg=colour0,italics] #(whoami)@#H %m/%d %I:%M '
|
2018-05-28 21:02:56 +00:00
|
|
|
set -g status-right-length 50
|
2018-06-14 01:17:17 +00:00
|
|
|
set -g status-left-length 40
|
2018-05-28 21:02:56 +00:00
|
|
|
set -g clock-mode-style 12
|
|
|
|
|
|
|
|
# Use Alt-vim keys without prefix key to switch panes
|
|
|
|
bind -n M-h select-pane -L
|
|
|
|
bind -n M-j select-pane -D
|
|
|
|
bind -n M-k select-pane -U
|
|
|
|
bind -n M-l select-pane -R
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
# Window splitting
|
|
|
|
bind-key c new-window -c "#{pane_current_path}"
|
|
|
|
bind-key v split-window -h -c "#{pane_current_path}"
|
|
|
|
bind-key h split-window -v -c "#{pane_current_path}"
|
|
|
|
bind-key + select-layout even-vertical
|
|
|
|
bind-key = select-layout even-horizontal
|
|
|
|
|
|
|
|
bind-key -n C-S-Down resize-pane -D 5
|
|
|
|
bind-key -n C-S-Up resize-pane -U 5
|
|
|
|
bind-key -n C-S-Left resize-pane -L 5
|
|
|
|
bind-key -n C-S-Right resize-pane -R 5
|
|
|
|
|