Skip to content

Instantly share code, notes, and snippets.

@akoGit
Created May 8, 2024 20:45
Show Gist options
  • Save akoGit/0fce8c7f6b668c3e214109a6dc38a3a5 to your computer and use it in GitHub Desktop.
Save akoGit/0fce8c7f6b668c3e214109a6dc38a3a5 to your computer and use it in GitHub Desktop.

Revisions

  1. akoGit created this gist May 8, 2024.
    33 changes: 33 additions & 0 deletions .tmux.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,33 @@
    set -ga terminal-overrides ",screen-256color*:Tc"
    set-option -g default-terminal "screen-256color"
    set -g status-style "bg=black,fg=#5eacd3"
    set -s escape-time 0

    set-option -g status-right "%a %d %b %I:%M %p"
    set -g pane-border-style fg=#333333
    set -g pane-active-border-style "bg=default fg=#333333"

    unbind %
    bind | split-window -h

    unbind '"'
    bind - split-window -v

    set -g base-index 1

    unbind r
    bind r source-file ~/.tmux.conf

    set -g prefix C-a
    unbind C-b
    bind-key C-a send-prefix

    set-window-option -g mode-keys vi
    bind -T copy-mode-vi v send-keys -X begin-selection
    bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'

    set -g mode-keys vi
    bind-key h select-pane -L
    bind-key j select-pane -D
    bind-key k select-pane -U
    bind-key l select-pane -R