2022-03-29 03:36:07 +00:00
|
|
|
set-environment -g PATH "$HOME/bin:$HOME/local/bin:/usr/local/bin:/usr/games:/usr/bin:/bin"
|
2021-08-18 04:15:10 +00:00
|
|
|
|
2021-09-20 03:39:25 +00:00
|
|
|
# Vi keys in copy mode
|
|
|
|
setw -g mode-keys vi
|
|
|
|
|
2021-08-18 02:45:05 +00:00
|
|
|
# Quick ESC reponse in (n)vim
|
|
|
|
set -sg escape-time 0
|
|
|
|
|
|
|
|
set -g visual-activity off
|
|
|
|
|
|
|
|
# terminal stuff
|
2023-01-14 01:35:46 +00:00
|
|
|
set -g default-terminal "xterm-256color"
|
2021-08-18 08:52:42 +00:00
|
|
|
# set -g terminal-overrides ",tmux-256color:Tc"
|
|
|
|
set-option -sa terminal-overrides ",*:Tc"
|
2021-08-18 02:45:05 +00:00
|
|
|
|
|
|
|
# Prefix for remote tmux (instead of C-b twice)
|
2021-08-18 04:46:34 +00:00
|
|
|
bind-key -n M-b send-prefix
|
2021-08-18 02:45:05 +00:00
|
|
|
|
|
|
|
# Splitting panes
|
|
|
|
bind-key v split-window -h
|
|
|
|
bind-key h split-window -v
|
|
|
|
|
|
|
|
# Titles
|
|
|
|
set -g set-titles on
|
|
|
|
set -g set-titles-string "#T"
|
|
|
|
|
2021-08-19 09:45:07 +00:00
|
|
|
# Keys
|
|
|
|
unbind r; bind r source-file ~/.tmux.conf \; display 'Reloaded tmux config' # Quick config reload
|
|
|
|
unbind g; bind g set status # Toggle status bar
|
|
|
|
|
|
|
|
# Plugin configs
|
2021-08-19 03:22:54 +00:00
|
|
|
set -g status-right '#{prefix_highlight} %H:%M | %a %Y-%m-%d'
|
2021-08-18 04:15:10 +00:00
|
|
|
set -g @fzf-url-bind 'z'
|
|
|
|
|
2021-08-18 02:45:05 +00:00
|
|
|
# Plugins
|
2021-08-18 04:15:10 +00:00
|
|
|
set -g @plugin 'tmux-plugins/tpm' # plugin manager
|
2021-08-18 02:45:05 +00:00
|
|
|
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
|
|
|
|
set -g @plugin 'wfxr/tmux-fzf-url' # fuzzy select url in buffer
|
2021-08-19 09:45:07 +00:00
|
|
|
set -g @plugin 'hallazzang/tmux-reset'
|
2021-10-13 12:40:21 +00:00
|
|
|
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
2021-08-18 02:45:05 +00:00
|
|
|
|
|
|
|
#Initialize plugin manager
|
2021-08-18 04:15:10 +00:00
|
|
|
run -b '~/.tmux/plugins/tpm/tpm'
|