From 524bdf030da8d4c5c219d5cb371c5f32ef5a7707 Mon Sep 17 00:00:00 2001 From: Ethan Paul Date: Fri, 7 Nov 2025 13:21:29 -0500 Subject: [PATCH] Add support for different prompt colors on different hosts --- Makefile | 3 +++ starship.discovery.color | 1 + starship.voyager.color | 1 + 3 files changed, 5 insertions(+) create mode 100644 starship.discovery.color create mode 100644 starship.voyager.color diff --git a/Makefile b/Makefile index 5e71039..d3d4a5c 100644 --- a/Makefile +++ b/Makefile @@ -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; + diff --git a/starship.discovery.color b/starship.discovery.color new file mode 100644 index 0000000..45a4d4c --- /dev/null +++ b/starship.discovery.color @@ -0,0 +1 @@ +#893937 diff --git a/starship.voyager.color b/starship.voyager.color new file mode 100644 index 0000000..8172f8d --- /dev/null +++ b/starship.voyager.color @@ -0,0 +1 @@ +#01568e