Created
September 9, 2019 02:35
-
-
Save onlurking/9dbb5f72340326a1189b73269e4215d1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Mouse support | |
set-option -g mouse on | |
set -g @scroll-speed-num-lines-per-scroll "1" | |
# make tmux display things in 256 colors | |
set -g default-terminal "screen-256color" | |
# set scrollback history to 10000 (10k) | |
set -g history-limit 10000 | |
# set Ctrl-<space> as the default prefix key combination | |
# and unbind C-b to free it | |
unbind C-b | |
set -g prefix C-Space | |
# use send-prefix to pass C-a through to application | |
bind Space send-prefix | |
# shorten command delay | |
set -sg escape-time 1 | |
# set window and pane index to 1 (0 by default) | |
set-option -g base-index 1 | |
setw -g pane-base-index 1 | |
# reload ~/.tmux.conf using PREFIX r | |
bind r source-file ~/.tmux.conf \; display "Reloaded!" | |
# Set status bar at the top | |
set-option -g status-position top | |
# use PREFIX = to split window horizontally and PREFIX - to split vertically | |
bind | split-window -h -c "#{pane_current_path}" | |
bind - split-window -v -c "#{pane_current_path}" | |
# Make the current window the first window | |
bind T swap-window -t 1 | |
# map Vi movement keys as pane movement keys | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
# and use C-h and C-l to cycle thru panes | |
bind -r C-h select-window -t :- | |
bind -r C-l select-window -t :+ | |
# resize panes using PREFIX H, J, K, L | |
bind H resize-pane -L 5 | |
bind J resize-pane -D 5 | |
bind K resize-pane -U 5 | |
bind L resize-pane -R 5 | |
# | |
## Theme | |
# | |
# toggle statusbar | |
bind-key b set-option status | |
# status line | |
set -g status-justify left | |
set -g status-bg default | |
set -g status-fg default | |
set -g status-interval 2 | |
# messaging | |
set -g automatic-rename on | |
# colors | |
setw -g window-status-format "#[fg=colour3] •#[fg=colour8] #W " | |
setw -g window-status-current-format "#[fg=colour2] •#[fg=colour7] #W " | |
set -g status-position bottom | |
set -g status-justify centre | |
set -g status-left " #[fg=colour3]• #[fg=colour2]• #[fg=colour4]•" | |
set -g status-right " #[fg=colour4] •#[fg=colour8] #S " | |
# List of plugins | |
set -g @plugin 'tmux-plugins/tpm' | |
set -g @plugin 'tmux-plugins/tmux-open' | |
set -g @plugin 'tmux-plugins/tmux-copycat' | |
set -g @plugin 'tmux-plugins/tmux-yank' | |
set -g @plugin 'tmux-plugins/tmux-resurrect' | |
set -g @plugin 'tmux-plugins/tmux-continuum' | |
run -b '~/.tmux/plugins/tpm/tpm' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment