Skip to content

Instantly share code, notes, and snippets.

@Timvd
Forked from spicycode/tmux.conf
Last active February 20, 2018 14:37
Show Gist options
  • Save Timvd/e67b03b2c1a28071eec8bb45c1f8ff81 to your computer and use it in GitHub Desktop.
Save Timvd/e67b03b2c1a28071eec8bb45c1f8ff81 to your computer and use it in GitHub Desktop.

Revisions

  1. Timvd revised this gist Feb 20, 2018. 1 changed file with 1 addition and 10 deletions.
    11 changes: 1 addition & 10 deletions tmux.conf
    Original file line number Diff line number Diff line change
    @@ -10,15 +10,6 @@ bind B setw synchronize-panes off

    bind r source-file ~/.tmux.conf

    bind m set -g mouse on
    bind M set -g mouse off

    # Vim style pane selection
    bind h select-pane -L
    bind j select-pane -D
    bind k select-pane -U
    bind l select-pane -R

    set -g default-terminal "screen-256color"
    set -g history-limit 10000

    @@ -28,4 +19,4 @@ setw -g pane-base-index 1
    set -g set-titles on
    set -g set-titles-string "#S: #W"

    setw -g xterm-keys on
    setw -g xterm-keys on
  2. Timvd revised this gist Jan 27, 2018. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions tmux.conf
    Original file line number Diff line number Diff line change
    @@ -13,6 +13,12 @@ bind r source-file ~/.tmux.conf
    bind m set -g mouse on
    bind M set -g mouse off

    # Vim style pane selection
    bind h select-pane -L
    bind j select-pane -D
    bind k select-pane -U
    bind l select-pane -R

    set -g default-terminal "screen-256color"
    set -g history-limit 10000

  3. Timvd revised this gist Jan 26, 2018. 1 changed file with 17 additions and 58 deletions.
    75 changes: 17 additions & 58 deletions tmux.conf
    Original file line number Diff line number Diff line change
    @@ -1,66 +1,25 @@
    # 0 is too far from ` ;)
    set -g base-index 1
    set -g prefix `
    bind ` send-prefix

    # Automatically set window title
    set-window-option -g automatic-rename on
    set-option -g set-titles on
    bind - split-window
    bind \ split-window -h
    bind | split-window -h

    #set -g default-terminal screen-256color
    set -g status-keys vi
    set -g history-limit 10000
    bind b setw synchronize-panes on
    bind B setw synchronize-panes off

    setw -g mode-keys vi
    setw -g mode-mouse on
    setw -g monitor-activity on
    bind r source-file ~/.tmux.conf

    bind-key v split-window -h
    bind-key s split-window -v
    bind m set -g mouse on
    bind M set -g mouse off

    bind-key J resize-pane -D 5
    bind-key K resize-pane -U 5
    bind-key H resize-pane -L 5
    bind-key L resize-pane -R 5
    set -g default-terminal "screen-256color"
    set -g history-limit 10000

    bind-key M-j resize-pane -D
    bind-key M-k resize-pane -U
    bind-key M-h resize-pane -L
    bind-key M-l resize-pane -R
    set -g base-index 1
    setw -g pane-base-index 1

    # Vim style pane selection
    bind h select-pane -L
    bind j select-pane -D
    bind k select-pane -U
    bind l select-pane -R
    set -g set-titles on
    set -g set-titles-string "#S: #W"

    # Use Alt-vim keys without prefix key to switch panes
    bind -n M-h select-pane -L
    bind -n M-j select-pane -D
    bind -n M-k select-pane -U
    bind -n M-l select-pane -R

    # Use Alt-arrow keys without prefix key to switch panes
    bind -n M-Left select-pane -L
    bind -n M-Right select-pane -R
    bind -n M-Up select-pane -U
    bind -n M-Down select-pane -D

    # Shift arrow to switch windows
    bind -n S-Left previous-window
    bind -n S-Right next-window

    # No delay for escape key press
    set -sg escape-time 0

    # Reload tmux config
    bind r source-file ~/.tmux.conf

    # THEME
    set -g status-bg black
    set -g status-fg white
    set -g window-status-current-bg white
    set -g window-status-current-fg black
    set -g window-status-current-attr bold
    set -g status-interval 60
    set -g status-left-length 30
    set -g status-left '#[fg=green](#S) #(whoami)'
    set -g status-right '#[fg=yellow]#(cut -d " " -f 1-3 /proc/loadavg)#[default] #[fg=white]%H:%M#[default]'
    setw -g xterm-keys on
  4. @spicycode spicycode created this gist Sep 20, 2011.
    66 changes: 66 additions & 0 deletions tmux.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,66 @@
    # 0 is too far from ` ;)
    set -g base-index 1

    # Automatically set window title
    set-window-option -g automatic-rename on
    set-option -g set-titles on

    #set -g default-terminal screen-256color
    set -g status-keys vi
    set -g history-limit 10000

    setw -g mode-keys vi
    setw -g mode-mouse on
    setw -g monitor-activity on

    bind-key v split-window -h
    bind-key s split-window -v

    bind-key J resize-pane -D 5
    bind-key K resize-pane -U 5
    bind-key H resize-pane -L 5
    bind-key L resize-pane -R 5

    bind-key M-j resize-pane -D
    bind-key M-k resize-pane -U
    bind-key M-h resize-pane -L
    bind-key M-l resize-pane -R

    # Vim style pane selection
    bind h select-pane -L
    bind j select-pane -D
    bind k select-pane -U
    bind l select-pane -R

    # Use Alt-vim keys without prefix key to switch panes
    bind -n M-h select-pane -L
    bind -n M-j select-pane -D
    bind -n M-k select-pane -U
    bind -n M-l select-pane -R

    # Use Alt-arrow keys without prefix key to switch panes
    bind -n M-Left select-pane -L
    bind -n M-Right select-pane -R
    bind -n M-Up select-pane -U
    bind -n M-Down select-pane -D

    # Shift arrow to switch windows
    bind -n S-Left previous-window
    bind -n S-Right next-window

    # No delay for escape key press
    set -sg escape-time 0

    # Reload tmux config
    bind r source-file ~/.tmux.conf

    # THEME
    set -g status-bg black
    set -g status-fg white
    set -g window-status-current-bg white
    set -g window-status-current-fg black
    set -g window-status-current-attr bold
    set -g status-interval 60
    set -g status-left-length 30
    set -g status-left '#[fg=green](#S) #(whoami)'
    set -g status-right '#[fg=yellow]#(cut -d " " -f 1-3 /proc/loadavg)#[default] #[fg=white]%H:%M#[default]'