Skip to content

Instantly share code, notes, and snippets.

@puhitaku
Last active November 12, 2018 16:42
Show Gist options
  • Save puhitaku/79ca332b233b53e1cb70 to your computer and use it in GitHub Desktop.
Save puhitaku/79ca332b233b53e1cb70 to your computer and use it in GitHub Desktop.
My .tmux.conf
unbind C-b
set -g prefix C-a
# If the escape delay persists, try setting `set keyseq-timeout 1` in .inputrc .
set -g escape-time 0
# Split
bind | split-window -h
bind - split-window -v
# Clipboard for Ubuntu
setw -g mode-keys vi
bind-key v copy-mode
bind-key -T copy-mode-vi v send -X begin-selection
bind-key -T copy-mode-vi y send -X copy-pipe-and-cancel "xsel -ip && xsel -op | xsel -ib"
setw -g monitor-activity on
set -g visual-activity on
set -g history-limit 10000
bind r source-file ~/.tmux.conf
# Mouse option
set -g mouse on
set -g pane-active-border-fg white
set -g pane-active-border-bg yellow
# 256
set -g default-terminal "screen-256color"
# Change window name to the name of current command
set-window-option -g automatic-rename on
# Move / Resize in Vim key binds
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind H resize-pane -L 5
bind J resize-pane -D 5
bind K resize-pane -U 5
bind L resize-pane -R 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment