Skip to content

Instantly share code, notes, and snippets.

@gpproton
Last active January 30, 2025 15:20
Show Gist options
  • Save gpproton/cbc977dce9958a0b6188b56cd5df86d1 to your computer and use it in GitHub Desktop.
Save gpproton/cbc977dce9958a0b6188b56cd5df86d1 to your computer and use it in GitHub Desktop.

Revisions

  1. gpproton revised this gist Jan 30, 2025. 2 changed files with 11 additions and 21 deletions.
    11 changes: 7 additions & 4 deletions .tmux.conf
    Original file line number Diff line number Diff line change
    @@ -16,7 +16,7 @@ set-option -g status-position top

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

    @@ -44,17 +44,20 @@ set -g @catppuccin_flavour 'mocha'

    set -g @plugin 'tmux-plugins/tpm'
    set -g @plugin 'tmux-plugins/tmux-sensible'
    set -g @plugin 'christoomey/vim-tmux-navigator'
    set -g @plugin 'dreamsofcode-io/catppuccin-tmux'
    set -g @plugin 'tmux-plugins/tmux-open'
    set -g @plugin 'tmux-plugins/tmux-yank'
    set -g @plugin 'tmux-plugins/tmux-copycat'
    set -g @plugin 'tmux-plugins/tmux-resurrect'
    set -g @plugin 'tmux-plugins/tmux-continuum'
    set -g @plugin 'christoomey/vim-tmux-navigator'
    set -g @plugin 'dreamsofcode-io/catppuccin-tmux'


    # enable auto restore/start
    set -g @continuum-restore 'on'
    set -g @continuum-save-interval '5'
    set -g @resurrect-dir '$HOME/.tmux/resurrect'
    set -g @continuum-boot 'on'
    # set -g @continuum-boot 'on'

    run '~/.tmux/plugins/tpm/tpm'

    21 changes: 4 additions & 17 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -1,28 +1,15 @@
    Install `tmux` through your preffered package manager and Configure - Edit your `~/.config/tmux/tmux.conf` OR `~/.tmux.conf`

    ```shell
    yay -S tmux tmux-plugin-manager
    ```


    Configure - Edit your `~/.config/tmux/tmux.conf`
    Setup `tmux` package manager

    ```shell
    set -g @plugin 'tmux-plugins/tpm'
    run '~/.tmux/plugins/tpm/tpm'

    OR
    pull from https://github.com/dreamsofcode-io/tmux/blob/main/tmux.conf
    ```

    yay -S tmux tmux-plugin-manager

    Setup `tmux` package manager
    ## OR

    ```shell
    git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm

    ## TPM init
    ~/.tmux/plugins/tpm/tpm init

    ## Install packages
    ~/.tmux/plugins/tpm/bin/install_plugins

  2. gpproton revised this gist Jan 30, 2025. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -18,7 +18,7 @@ pull from https://github.com/dreamsofcode-io/tmux/blob/main/tmux.conf
    Setup `tmux` package manager

    ```shell
    git clone https://aur.archlinux.org/tmux-plugin-manager.git ~/.tmux/plugins/tpm
    git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm

    ## TPM init
    ~/.tmux/plugins/tpm/tpm init
  3. gpproton revised this gist Dec 10, 2024. 2 changed files with 20 additions and 7 deletions.
    18 changes: 13 additions & 5 deletions .tmux.conf
    Original file line number Diff line number Diff line change
    @@ -2,17 +2,17 @@ set-option -sa terminal-overrides ",xterm*:Tc"
    set -g default-terminal 'screen-256color'
    set -g mouse on

    # Very important
    # Very important change prefix key bindings
    unbind C-b
    set -g prefix C-s
    bind C-s send-prefix
    set -g prefix C-a
    bind C-a send-prefix

    # Move status bar to top
    set-option -g status-position top

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

    # Vim style pane selection
    bind h select-pane -L
    @@ -47,6 +47,14 @@ set -g @plugin 'tmux-plugins/tmux-sensible'
    set -g @plugin 'christoomey/vim-tmux-navigator'
    set -g @plugin 'dreamsofcode-io/catppuccin-tmux'
    set -g @plugin 'tmux-plugins/tmux-yank'
    set -g @plugin 'tmux-plugins/tmux-resurrect'
    set -g @plugin 'tmux-plugins/tmux-continuum'

    # enable auto restore/start
    set -g @continuum-restore 'on'
    set -g @continuum-save-interval '5'
    set -g @resurrect-dir '$HOME/.tmux/resurrect'
    set -g @continuum-boot 'on'

    run '~/.tmux/plugins/tpm/tpm'

    9 changes: 7 additions & 2 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -3,9 +3,10 @@
    yay -S tmux tmux-plugin-manager
    ```


    Configure - Edit your `~/.config/tmux/tmux.conf`

    ```shell~/.tmux.conf~/.tmux.conf~/.tmux.conf~/.tmux.conf
    ```shell
    set -g @plugin 'tmux-plugins/tpm'
    run '~/.tmux/plugins/tpm/tpm'

    @@ -25,7 +26,11 @@ git clone https://aur.archlinux.org/tmux-plugin-manager.git ~/.tmux/plugins/tpm
    ## Install packages
    ~/.tmux/plugins/tpm/bin/install_plugins

    OR

    <Prefix> + I

    ## Reload from source
    tmux source ~/.config/tmux/tmux.conf
    ```

    ```
  4. gpproton revised this gist Dec 10, 2024. No changes.
  5. gpproton revised this gist Dec 10, 2024. 2 changed files with 4 additions and 4 deletions.
    2 changes: 1 addition & 1 deletion .tmux.conf
    Original file line number Diff line number Diff line change
    @@ -12,7 +12,7 @@ set-option -g status-position top

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

    # Vim style pane selection
    bind h select-pane -L
    6 changes: 3 additions & 3 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -3,9 +3,9 @@
    yay -S tmux tmux-plugin-manager
    ```

    Configure - Edit your `~/.tmux.conf`
    Configure - Edit your `~/.config/tmux/tmux.conf`

    ```shell
    ```shell~/.tmux.conf~/.tmux.conf~/.tmux.conf~/.tmux.conf
    set -g @plugin 'tmux-plugins/tpm'
    run '~/.tmux/plugins/tpm/tpm'
    @@ -26,6 +26,6 @@ git clone https://aur.archlinux.org/tmux-plugin-manager.git ~/.tmux/plugins/tpm
    ~/.tmux/plugins/tpm/bin/install_plugins

    ## Reload from source
    tmux source ~/.tmux.conf
    tmux source ~/.config/tmux/tmux.conf
    ```

  6. gpproton created this gist Dec 10, 2024.
    61 changes: 61 additions & 0 deletions .tmux.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,61 @@
    set-option -sa terminal-overrides ",xterm*:Tc"
    set -g default-terminal 'screen-256color'
    set -g mouse on

    # Very important
    unbind C-b
    set -g prefix C-s
    bind C-s send-prefix

    # Move status bar to top
    set-option -g status-position top

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

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

    # Start windows and panes at 1, not 0
    set -g base-index 1
    set -g pane-base-index 1
    set-window-option -g pane-base-index 1
    set-option -g renumber-windows on

    # 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

    # Shift Alt vim keys to switch windows
    bind -n M-H previous-window
    bind -n M-L next-window

    set -g @catppuccin_flavour 'mocha'

    set -g @plugin 'tmux-plugins/tpm'
    set -g @plugin 'tmux-plugins/tmux-sensible'
    set -g @plugin 'christoomey/vim-tmux-navigator'
    set -g @plugin 'dreamsofcode-io/catppuccin-tmux'
    set -g @plugin 'tmux-plugins/tmux-yank'

    run '~/.tmux/plugins/tpm/tpm'

    # set vi-mode
    set-window-option -g mode-keys vi
    # keybindings
    bind-key -T copy-mode-vi v send-keys -X begin-selection
    bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
    bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel

    bind '"' split-window -v -c "#{pane_current_path}"
    bind % split-window -h -c "#{pane_current_path}"
    31 changes: 31 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,31 @@

    ```shell
    yay -S tmux tmux-plugin-manager
    ```

    Configure - Edit your `~/.tmux.conf`

    ```shell
    set -g @plugin 'tmux-plugins/tpm'
    run '~/.tmux/plugins/tpm/tpm'

    OR
    pull from https://github.com/dreamsofcode-io/tmux/blob/main/tmux.conf
    ```


    Setup `tmux` package manager

    ```shell
    git clone https://aur.archlinux.org/tmux-plugin-manager.git ~/.tmux/plugins/tpm

    ## TPM init
    ~/.tmux/plugins/tpm/tpm init

    ## Install packages
    ~/.tmux/plugins/tpm/bin/install_plugins

    ## Reload from source
    tmux source ~/.tmux.conf
    ```