feat(home): Add starship cross-shell prompt role #5

Merged
johno merged 1 commits from feat/starship-prompt-nixos-configs-uji into main 2026-01-10 11:46:48 -08:00
Owner

Summary

Adds starship.rs as a new home-manager role for a fast, customizable cross-shell prompt.

Changes

New file: home/roles/starship/default.nix

Creates a new home.roles.starship option with the following configuration:

  • Shell integration: Bash and Zsh enabled
  • Character symbols: > for success, x for error, < for vi command mode
  • Directory: Truncated to 4 levels, smart truncation to repo root
  • Git: Branch name and status indicators
  • Nix shell: Snowflake indicator when in nix-shell
  • Command duration: Shows elapsed time for commands taking 2+ seconds
  • Disabled modules: Language runtimes (nodejs, python, rust, etc.) and cloud providers (aws, gcloud, azure) to keep the prompt clean

Enabled in:

  • home-desktop.nix
  • home-laptop-compact.nix
  • home-live-usb.nix
  • home-media-center.nix

Usage

After applying, open a new terminal to see the starship prompt. Configuration can be customized by modifying home/roles/starship/default.nix.


Bead: nixos-configs-uji

## Summary Adds [starship.rs](https://starship.rs/) as a new home-manager role for a fast, customizable cross-shell prompt. ## Changes **New file:** `home/roles/starship/default.nix` Creates a new `home.roles.starship` option with the following configuration: - **Shell integration:** Bash and Zsh enabled - **Character symbols:** `>` for success, `x` for error, `<` for vi command mode - **Directory:** Truncated to 4 levels, smart truncation to repo root - **Git:** Branch name and status indicators - **Nix shell:** Snowflake indicator when in nix-shell - **Command duration:** Shows elapsed time for commands taking 2+ seconds - **Disabled modules:** Language runtimes (nodejs, python, rust, etc.) and cloud providers (aws, gcloud, azure) to keep the prompt clean **Enabled in:** - `home-desktop.nix` - `home-laptop-compact.nix` - `home-live-usb.nix` - `home-media-center.nix` ## Usage After applying, open a new terminal to see the starship prompt. Configuration can be customized by modifying `home/roles/starship/default.nix`. --- **Bead:** nixos-configs-uji
johno added 3 commits 2026-01-10 10:41:50 -08:00
Add a new home-manager role for starship.rs, a fast and customizable
cross-shell prompt written in Rust.

Configuration includes:
- Bash and Zsh integration enabled
- Clean character symbols (> for success, x for error)
- Vi mode indicator support
- Smart directory truncation (4 levels, truncate to repo root)
- Git branch and status display
- Nix shell indicator with snowflake symbol
- Command duration for long-running commands (2s+)
- Disabled noisy modules (language runtimes, cloud providers)

Enabled in: home-desktop, home-laptop-compact, home-live-usb,
home-media-center configurations.

Closes: nixos-configs-uji
johno merged commit 82fb1738c1 into main 2026-01-10 11:46:48 -08:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: johno/nixos-configs#5