chore: tmux config update, homebrew cleanshit up

This commit is contained in:
Rasyidan Akbar F. 2026-03-25 15:27:24 +07:00
commit 11c34eecb8
2 changed files with 21 additions and 4 deletions

View file

@ -38,7 +38,6 @@ in
"obs" "obs"
"neohtop" "neohtop"
"orbstack" "orbstack"
"ghostty"
"openvpn-connect" "openvpn-connect"
]; ];
description = "Homebrew casks to install."; description = "Homebrew casks to install.";

View file

@ -21,17 +21,35 @@
set-option -ga terminal-overrides ",*256col*:Tc" set-option -ga terminal-overrides ",*256col*:Tc"
set-option -g focus-events on set-option -g focus-events on
# Avoid CSI-u newline remapping that breaks Neovim pastes # Avoid CSI-u newline remapping that breaks Neovim pastes
set -as terminal-features 'xterm-ghostty:bpaste,clipboard,RGB' set -as terminal-features 'xterm-kitty:clipboard,RGB'
set -g status-interval 5 set -g status-interval 5
setw -g automatic-rename on setw -g automatic-rename on
set -g renumber-windows on set -g renumber-windows on
bind r source-file ~/.tmux.conf \; display-message "tmux reloaded" bind r source-file ~/.tmux.conf \; display-message "tmux reloaded"
bind | split-window -h bind | split-window -h
bind - split-window -v bind - split-window -v
unbind '"' unbind '"'
unbind % unbind %
set -g display-panes-time 1500 set -g display-panes-time 1500
bind k send-keys -R \; send-keys C-l \; clear-history bind C-k send-keys -R \; send-keys C-l \; clear-history
# Vim-style pane navigation (prefix + hjkl)
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# No-prefix pane switching (Option + arrow)
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
# Pane resizing (prefix + Shift+hjkl)
bind H resize-pane -L 5
bind J resize-pane -D 5
bind K resize-pane -U 5
bind L resize-pane -R 5
# Ensure tmux panes spawn login nu so Starship integration runs # Ensure tmux panes spawn login nu so Starship integration runs
set -g default-shell "${config.home.profileDirectory}/bin/nu" set -g default-shell "${config.home.profileDirectory}/bin/nu"
set -g default-command "${config.home.profileDirectory}/bin/nu --login" set -g default-command "${config.home.profileDirectory}/bin/nu --login"