Skip to content

Instantly share code, notes, and snippets.

@kyldvs
Created March 5, 2024 03:54
Show Gist options
  • Save kyldvs/81b0c32f5f5f9a5f98ffe651d6b225d8 to your computer and use it in GitHub Desktop.
Save kyldvs/81b0c32f5f5f9a5f98ffe651d6b225d8 to your computer and use it in GitHub Desktop.
# Mouse support
set -g mouse on
# Set prefix to Ctrl-Space
unbind C-b
set -g prefix C-Space
bind C-Space send-prefix
# Ctrl-j/k to swap windows.
bind -n C-J previous-window
bind -n C-K next-window
# 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
# Open panes/windows in current directory.
bind '"' split-window -v -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
# Install plugins.
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
# https://github.com/o0th/tmux-nova
set -g @plugin 'o0th/tmux-nova'
set -g @nova-nerdfonts true
set -g @nova-nerdfonts-left ""
set -g @nova-nerdfonts-right ""
set -g @nova-segment-mode "#{?client_prefix,Ω,ω}"
set -g @nova-segment-mode-colors "#50fa7b #282a36"
set -g @nova-segment-whoami "#(whoami)@#h"
set -g @nova-segment-whoami-colors "#50fa7b #282a36"
# ideographic space: " ", non-breaking space: " "
set -g @nova-pane "#I#{?pane_in_mode, #{pane_mode},} #W"
set -g @nova-rows 0
set -g @nova-segments-0-left "mode"
set -g @nova-segments-0-right "whoami"
run '~/.tmux/plugins/tpm/tpm'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment