Skip to content

Instantly share code, notes, and snippets.

@Axelcouty
Last active February 18, 2020 14:43
Show Gist options
  • Save Axelcouty/62612573de9c6de5d6351464edaf4ba1 to your computer and use it in GitHub Desktop.
Save Axelcouty/62612573de9c6de5d6351464edaf4ba1 to your computer and use it in GitHub Desktop.
.tmux.conf
unbind C-b
set -g prefix C-a
bind C-a send-prefix
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
# line history buffer limit
set-option -g history-limit 100000
# configuration reload
bind C-r source-file ~/.tmux.conf \; display 'Config reloaded.'
bind-key u capture-pane \; save-buffer /tmp/tmux-buffer \; run-shell "$TERMINAL -e urlview /tmp/tmux-buffer"
# split actions
unbind C-w
unbind C-x
bind C-w split-window -h
bind C-x split-window -v
# Delete current tmux pane
unbind C-d
bind C-d kill-pane
# quick selection
bind C-a select-pane -t :.+
# use 256 colour term
set -g default-terminal "screen-256color"
set -g mouse on
unbind [
bind Escape copy-mode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment