Skip to content

Instantly share code, notes, and snippets.

@hgrimelid
Created June 30, 2021 11:49

Revisions

  1. hgrimelid created this gist Jun 30, 2021.
    44 changes: 44 additions & 0 deletions .tmux.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,44 @@
    # Requires Fish

    # Rebind prefix key to C-a
    unbind C-b
    set -g prefix C-a

    # force a reload of the config file
    unbind r
    bind r source-file ~/.tmux.conf

    # Set shell
    set-option -g default-shell "/usr/bin/fish"

    # start window numbering at 1 for easier switching
    set -g base-index 1

    # colors
    set -g default-terminal "screen-256color"

    # status bar config
    set -g status-left "#h:[#S]"
    set -g status-left-length 50
    set -g status-right-length 50
    set -g status-right "%H:%M %d.%m.%Y"
    setw -g window-status-current-format "|#I:#W|"
    set-window-option -g automatic-rename off

    # listen to alerts from all windows
    set -g bell-action any

    # rebind pane tiling
    bind V split-window -h
    bind H split-window

    # quick pane cycling
    unbind ^A
    bind ^A select-pane -t :.+

    # screen like window toggling
    bind Tab last-window
    bind Escape copy-mode

    # Use vim keybindings in copy mode
    setw -g mode-keys vi