From 33015ed63b81a03be43791e91f33e6ad425f9b71 Mon Sep 17 00:00:00 2001 From: kiskaadee Date: Tue, 30 Jun 2026 17:03:38 -0500 Subject: [PATCH] refactor(shell): standardize tmux and starship configurations - Tmux: Revert custom prefix, index, and session-spawning configurations to rely on default behavior, minimizing configuration drift across systems. - Starship: Enable newline separation before the prompt, improving terminal readability. Rationale: Deprecating custom `tmux` shortcuts to build "muscle memory" with standard defaults, ensuring portability and reducing dependency on custom dotfiles for basic terminal navigation. --- modules/user/terminal.nix | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/modules/user/terminal.nix b/modules/user/terminal.nix index 41c5dc3..2c3022f 100644 --- a/modules/user/terminal.nix +++ b/modules/user/terminal.nix @@ -31,10 +31,7 @@ # Allows maintaining persistent shell sessions, window splitting, and tabs. programs.tmux = { enable = true; - shortcut = "a"; # Remaps Tmux prefix key to `Ctrl+a` (similar to GNU Screen) - baseIndex = 1; # Sets starting window index to 1 (matching keyboard layout) - newSession = true; # Spawns a new session automatically when calling tmux attach - escapeTime = 0; # Zero latency for Vim mode transitions (removes Esc lag) + escapeTime = 0; # Remove the default escape delay mouse = true; # Enables scrollback navigation and pane resizing using the mouse pointer terminal = "tmux-256color"; @@ -47,12 +44,11 @@ }; # Cross-Shell Prompt (Starship) - # A highly customizable, language-aware shell status prompt. programs.starship = { enable = true; enableBashIntegration = true; # Mount prompt configuration inside Bash shells settings = { - add_newline = false; # Do not add empty lines before the prompt line + add_newline = true; character = { success_symbol = "[➜](bold green)"; error_symbol = "[➜](bold red)";