Add support for different prompt colors on different hosts
This commit is contained in:
3
Makefile
3
Makefile
@@ -2,6 +2,7 @@ BUILD_COMMIT = $(shell git rev-parse HEAD)
|
|||||||
BASE_IMAGE = registry.fedoraproject.org/fedora-toolbox
|
BASE_IMAGE = registry.fedoraproject.org/fedora-toolbox
|
||||||
BASE_IMAGE_VERSION = $(shell cat /etc/os-release | grep VERSION_ID | cut -d = -f 2)
|
BASE_IMAGE_VERSION = $(shell cat /etc/os-release | grep VERSION_ID | cut -d = -f 2)
|
||||||
REPOSITORY = localhost/toolbox-dev-env
|
REPOSITORY = localhost/toolbox-dev-env
|
||||||
|
STARSHIP_COLOR = $(shell cat starship.$(HOSTNAME).color)
|
||||||
|
|
||||||
.PHONY: container
|
.PHONY: container
|
||||||
container:
|
container:
|
||||||
@@ -29,5 +30,7 @@ scripts:
|
|||||||
cp bashrc.sh ~/.bashrc
|
cp bashrc.sh ~/.bashrc
|
||||||
cp inputrc ~/.inputrc
|
cp inputrc ~/.inputrc
|
||||||
cp starship.toml ~/.config/starship.toml
|
cp starship.toml ~/.config/starship.toml
|
||||||
|
sed -i "s/#XXXXXX/$(STARSHIP_COLOR)/g" ~/.config/starship.toml
|
||||||
|
|
||||||
install: container scripts;
|
install: container scripts;
|
||||||
|
|
||||||
|
|||||||
1
starship.discovery.color
Normal file
1
starship.discovery.color
Normal file
@@ -0,0 +1 @@
|
|||||||
|
#893937
|
||||||
1
starship.voyager.color
Normal file
1
starship.voyager.color
Normal file
@@ -0,0 +1 @@
|
|||||||
|
#01568e
|
||||||
Reference in New Issue
Block a user