feat: add starship bash prompt support#14
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
starship.tomlconfiguration showing: directory, git branch/status, Node.js version, nix shell indicator, command duration, and a colored prompt characterChanges
images/base/Dockerfilestarship.rs/install.sh)COPYastarship.tomlconfig into/home/coder/.config/starship.tomleval "$(starship init bash)"to the coder user's.bashrcimages/base/starship.toml(new)>as prompt character (green on success, red on error)images/nix/flake.nixstarshipto the packages liststarshipConfig(viawriteTextDir) with the same TOML configeval "$(starship init bash)"to the.bashrcNotes
~/.config/starship.tomlin their workspace