Add support for different prompt colors on different hosts

This commit is contained in:
2025-11-07 13:21:29 -05:00
parent 88ccccdb50
commit 524bdf030d
3 changed files with 5 additions and 0 deletions

View File

@@ -2,6 +2,7 @@ BUILD_COMMIT = $(shell git rev-parse HEAD)
BASE_IMAGE = registry.fedoraproject.org/fedora-toolbox
BASE_IMAGE_VERSION = $(shell cat /etc/os-release | grep VERSION_ID | cut -d = -f 2)
REPOSITORY = localhost/toolbox-dev-env
STARSHIP_COLOR = $(shell cat starship.$(HOSTNAME).color)
.PHONY: container
container:
@@ -29,5 +30,7 @@ scripts:
cp bashrc.sh ~/.bashrc
cp inputrc ~/.inputrc
cp starship.toml ~/.config/starship.toml
sed -i "s/#XXXXXX/$(STARSHIP_COLOR)/g" ~/.config/starship.toml
install: container scripts;