Skip to content

feat: add starship bash prompt support#14

Merged
megheaiulian merged 1 commit into
mainfrom
feat/starship-prompt
Feb 17, 2026
Merged

feat: add starship bash prompt support#14
megheaiulian merged 1 commit into
mainfrom
feat/starship-prompt

Conversation

@megheaiulian

Copy link
Copy Markdown
Contributor

Summary

  • Adds Starship cross-shell prompt to both the base and nix images
  • Includes a minimal starship.toml configuration showing: directory, git branch/status, Node.js version, nix shell indicator, command duration, and a colored prompt character
  • The devops image inherits starship automatically from the base image

Changes

images/base/Dockerfile

  • Install starship via the official install script (starship.rs/install.sh)
  • COPY a starship.toml config into /home/coder/.config/starship.toml
  • Append eval "$(starship init bash)" to the coder user's .bashrc

images/base/starship.toml (new)

  • Minimal config with only the selected modules enabled
  • Uses > as prompt character (green on success, red on error)

images/nix/flake.nix

  • Add starship to the packages list
  • Add starshipConfig (via writeTextDir) with the same TOML config
  • Add eval "$(starship init bash)" to the .bashrc

Notes

  • Users can override the config by editing ~/.config/starship.toml in their workspace
  • No changes needed for the devops image since it extends the base image

Install starship cross-shell prompt with a minimal configuration
that shows directory, git branch/status, Node.js version, nix shell
indicator, command duration, and a colored prompt character.

- Base image: install via official install script, copy starship.toml,
  init in .bashrc
- Nix image: add starship package, writeTextDir config, init in .bashrc
- Devops image inherits from base automatically
@megheaiulian megheaiulian merged commit 19b5e12 into main Feb 17, 2026
3 checks passed
@megheaiulian megheaiulian deleted the feat/starship-prompt branch February 17, 2026 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant