# Source changes without restarting tmux: # tmux source-file ~/.tmux.conf # I have a custom Planck EZ layer for tmux # so I don't have to adjust keyboard shortcuts # # Still, the most important ones to me: # Prefix is Ctrl+b, then: # c create new window # n switch to next window # switch to windows # o switch to next pane # % split pane vertically # " split pane horizontally # change layout when having more than one pane # , rename active window # I don't know set -g mouse on # Increase scrollback history set-option -g history-limit 50000 # Faster mouse scrolling set -g @scroll-speed-num-lines-per-scroll 5 # Vi mode to copy things from terminal setw -g mode-keys vi # Count panes from 1 instead of 0 set -g base-index 1 setw -g pane-base-index 1 # Status bar stuff set -g status-style fg=#9d7cd8,bg=#16161e set-window-option -g window-status-current-style bg=#3e3158 set -g status-position top set -g status-interval 10 set -g status-left "#( ~/.config/tmux/tmux_left.sh )" set -g status-left-length 60 set -g status-justify centre set -g status-right "#( ~/.config/tmux/tmux_right.sh )" set -g status-right-length 60 # Get good colors # https://www.reddit.com/r/tmux/comments/mesrci/tmux_2_doesnt_seem_to_use_256_colors/ #set-option -g default-terminal "screen-256color" set -g default-terminal "tmux-256color" set -ga terminal-overrides ",*256col*:Tc" set -ga terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[ q' set-environment -g COLORTERM "truecolor" # Distinguish active/inactive panes set -g window-style 'fg=colour247,bg=colour236' set -g window-active-style 'fg=colour250,bg=black' # Display messages longer (ms) #set-option -g display-time 4000 # Splits start with $PWD from source pane bind '"' split-window -v -c "#{pane_current_path}" bind % split-window -h -c "#{pane_current_path}" # Restore tmux environment after system restart #run-shell /Users/oliver.ladner/.config/tmux/plugins/resurrect/resurrect.tmux run-shell ~/.config/tmux/plugins/resurrect/resurrect.tmux