Skip to content

Instantly share code, notes, and snippets.

@daviddykeuk
Last active March 25, 2022 18:58
Show Gist options
  • Save daviddykeuk/9af187e0abc8ad92d861fc09920fced1 to your computer and use it in GitHub Desktop.
Save daviddykeuk/9af187e0abc8ad92d861fc09920fced1 to your computer and use it in GitHub Desktop.
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'tmux-plugins/tmux-cpu'
set -g @plugin 'tmux-plugins/tmux-urlview'
set -g @plugin 'xamut/tmux-weather'
set -g @continuum-boot-options 'iterm'
set -g @continuum-boot 'on'
set -g @continuum-restore 'on'
set -g @cpu_percentage_format "%3.0f%%"
set -g @ram_percentage_format "%3.0f%%"
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# split panes using | and -
bind | split-window -h -c '#{pane_current_path}'
bind - split-window -v -c '#{pane_current_path}'
unbind '"'
unbind %
# force a reload of the config file
# reload config file (change file location to your the tmux.conf you want to use)
bind r source-file ~/.tmux.conf
# tab through windows and panes
bind -n C-l next-window
bind -n C-h previous-window
bind -n C-k select-pane -t :.+
bind -n C-j select-pane -t :.-
# resize pane
bind -n C-Down resize-pane -D 5
bind -n C-Up resize-pane -U 5
bind -n C-Right resize-pane -R 10
bind -n C-Left resize-pane -L 10
bind -n S-Down resize-pane -D 1
bind -n S-Up resize-pane -U 1
bind -n S-Right resize-pane -R 2
bind -n S-Left resize-pane -L 2
# tmux status bar color
set-option -g status-keys "emacs"
set -g status-right-length 60
set -g status-right '#{weather} |#{cpu_percentage} |#{ram_percentage} | %a %d %h %H:%M '
bind c new-window -c "#{pane_current_path}"
set -g base-index 1
set -g renumber-windows on
bind-key b break-pane -d
bind-key C-j choose-tree
# Use vim keybindings in copy mode
setw -g mode-keys vi
set-option -sg escape-time 10
set-option -g default-terminal "screen-256color"
set-option -sa terminal-overrides ',XXX:RGB'
#set inactive/active window styles
set -g default-terminal "screen-256color"
set -g window-style 'fg=colour247,bg=colour236'
set -g window-active-style 'fg=colour250,bg=black'
# set the pane border colors
set -g pane-border-style 'fg=colour235,bg=colour238'
set -g pane-active-border-style 'fg=colour51,bg=colour236'
run '~/.tmux/plugins/tpm/tpm'
set-option -g default-shell /bin/zsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment