From d4abe97764bd48434cd3e7e5d4f7be26cf0c551a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=9C=BF=20corey=20=28they/them=29?= Date: Mon, 9 Mar 2026 18:02:54 -0700 Subject: [PATCH] feat(home): add starship minimal prompt toggle Add prompt_minimal/prompt_full shell functions to quickly swap between full gruvbox powerline prompt and minimal character-only prompt. Useful for copying shell history and narrow terminals like Conductor. Adds starship-minimal.toml config that displays only the prompt character. --- home/programs/starship.nix | 5 +++++ home/programs/zsh.nix | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/home/programs/starship.nix b/home/programs/starship.nix index d4093aaa..72738fb7 100644 --- a/home/programs/starship.nix +++ b/home/programs/starship.nix @@ -1,4 +1,9 @@ {lib, ...}: { + xdg.configFile."starship-minimal.toml".text = '' + format = "$character" + add_newline = false + ''; + programs.starship = { enable = true; enableZshIntegration = true; diff --git a/home/programs/zsh.nix b/home/programs/zsh.nix index 1173a200..6adc5a6d 100644 --- a/home/programs/zsh.nix +++ b/home/programs/zsh.nix @@ -34,6 +34,14 @@ unset HISTFILE } + prompt_minimal () { + export STARSHIP_CONFIG=''${XDG_CONFIG_HOME:-$HOME/.config}/starship-minimal.toml + } + + prompt_full () { + unset STARSHIP_CONFIG + } + if command -v nix-your-shell > /dev/null; then nix-your-shell zsh | source /dev/stdin fi