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.
This commit is contained in:
1 parent
bc472ae6ad
commit
33015ed63b
1 file changed
+2
-6
@@ -31,10 +31,7 @@
|
|||||||
# Allows maintaining persistent shell sessions, window splitting, and tabs.
|
# Allows maintaining persistent shell sessions, window splitting, and tabs.
|
||||||
programs.tmux = {
|
programs.tmux = {
|
||||||
enable = true;
|
enable = true;
|
||||||
shortcut = "a"; # Remaps Tmux prefix key to `Ctrl+a` (similar to GNU Screen)
|
escapeTime = 0; # Remove the default escape delay
|
||||||
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)
|
|
||||||
mouse = true; # Enables scrollback navigation and pane resizing using the mouse pointer
|
mouse = true; # Enables scrollback navigation and pane resizing using the mouse pointer
|
||||||
terminal = "tmux-256color";
|
terminal = "tmux-256color";
|
||||||
|
|
||||||
@@ -47,12 +44,11 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
# Cross-Shell Prompt (Starship)
|
# Cross-Shell Prompt (Starship)
|
||||||
# A highly customizable, language-aware shell status prompt.
|
|
||||||
programs.starship = {
|
programs.starship = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableBashIntegration = true; # Mount prompt configuration inside Bash shells
|
enableBashIntegration = true; # Mount prompt configuration inside Bash shells
|
||||||
settings = {
|
settings = {
|
||||||
add_newline = false; # Do not add empty lines before the prompt line
|
add_newline = true;
|
||||||
character = {
|
character = {
|
||||||
success_symbol = "[➜](bold green)";
|
success_symbol = "[➜](bold green)";
|
||||||
error_symbol = "[➜](bold red)";
|
error_symbol = "[➜](bold red)";
|
||||||
|
|||||||
Reference in new issue
Block a user