Skip to content

Instantly share code, notes, and snippets.

@ihilt
Last active November 9, 2021 13:57
Show Gist options
  • Select an option

  • Save ihilt/574e3bc34a3ed536a10dd137f3618f05 to your computer and use it in GitHub Desktop.

Select an option

Save ihilt/574e3bc34a3ed536a10dd137f3618f05 to your computer and use it in GitHub Desktop.
Tmux config
unbind-key C-b
set -g prefix `
bind-key e send-prefix
bind-key ` last-window
set-option -sa terminal-overrides ",xterm*:RGB"
set -g default-terminal "tmux-256color"
set-window-option -g mode-keys vi
set -g bell-action none
set -g status-position bottom
set -g status-bg colour234
set -g status-fg colour137
set -g status-left ''
set -g status-right '#[fg=colour233,bg=colour241,bold] %m/%d #[fg=colour233,bg=colour245,bold] %H:%M:%S '
set -g status-right-length 50
set -g status-left-length 20
set -g status-interval 1
setw -g mode-keys vi
setw -g window-status-current-format ' #I#[fg=colour250]:#[fg=colour255]#W#[fg=colour50]#F '
setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F '
set-option -g history-limit 10000
set-option -g allow-rename off
set-option -sg escape-time 10
set-option -sg repeat-time 10
set-option -g focus-events on
set-option -g set-titles on
set -g mouse on
unbind -n MouseDrag1Pane
unbind -Tcopy-mode MouseDrag1Pane
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xsel -i -p && xsel -o -p | xsel -i -b"
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xsel -i -p && xsel -o -p | xsel -i -b"
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment