Compare commits

...

4 Commits

Author SHA1 Message Date
844c10948b Update python prompt module to only show when venv is active
Add leading space to RO path icon
2025-11-07 13:34:45 -05:00
28f98a23d6 Fix janky transition wedges between prompt segments 2025-11-07 13:32:33 -05:00
16194ce20f !fixup different colors 2025-11-07 13:24:04 -05:00
524bdf030d Add support for different prompt colors on different hosts 2025-11-07 13:21:29 -05:00
4 changed files with 17 additions and 12 deletions

View File

@@ -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
View File

@@ -0,0 +1 @@
#893937

View File

@@ -1,19 +1,19 @@
add_newline = false add_newline = false
format = '${custom.toolbox}${custom.localhost}[](bold fg:#01568e bg:#000000)$directory$python$git_branch$git_status$status$character' format = '${custom.toolbox}${custom.localhost}[](bold fg:#XXXXXX bg:#444444)$directory$python$git_branch$git_status$status$character'
[directory] [directory]
format = "[](fg:#000000 bg:#444444)[$read_only]($read_only_style)[$path ]($style)[](fg:#444444 bg:#000000)" format = "[$read_only]($read_only_style)[$path ]($style)[](fg:#444444 bg:#XXXXXX)"
style = "fg:bright-white bg:#444444" style = "fg:bright-white bg:#444444"
read_only = '' read_only = ' '
read_only_style = "bold fg:bright-red bg:#444444" read_only_style = "bold fg:red bg:#444444"
truncation_symbol = ' ' truncation_symbol = ' '
home_symbol = '' home_symbol = ''
[directory.substitutions] [directory.substitutions]
'/' = '  ' '/' = '  '
[character] [character]
success_symbol = '' success_symbol = '[](bold fg:#XXXXXX)'
error_symbol = '[](bold fg:#6d0505)' error_symbol = '[](bold fg:#6d0505)'
[status] [status]
@@ -21,28 +21,28 @@ disabled = false
symbol = '' symbol = ''
pipestatus = true pipestatus = true
style = "bold fg:bright-white bg:#6d0505" style = "bold fg:bright-white bg:#6d0505"
format = '[](bold fg:#000000 bg:#6d0505)[ $status ]($style)' format = '[](bold fg:#XXXXXX bg:#6d0505)[ $status ]($style)'
[git_branch] [git_branch]
symbol = '' symbol = ''
format = '[](bold fg:#000000 bg:#44b240)[$symbol $branch]($style)[](bold bg:#000000 fg:#44b240)' format = '[](bold fg:#XXXXXX bg:#44b240)[$symbol $branch]($style)[](bold bg:#XXXXXX fg:#44b240)'
style = 'bold bg:#44b240 fg:black' style = 'bold bg:#44b240 fg:black'
[git_status] [git_status]
style = "bold fg:black bg:#f4862c" style = "bold fg:black bg:#f4862c"
format = '([](bold fg:#000000 bg:#f4862c)[$all_status$ahead_behind]($style)[](bold bg:#000000 fg:#f4862c))' format = '([](bold fg:#XXXXXX bg:#f4862c)[$all_status$ahead_behind]($style)[](bold bg:#XXXXXX fg:#f4862c))'
[python] [python]
style = 'bold bg:#fcf52a fg:black' style = 'bold bg:#fcf52a fg:black'
symbol = '' symbol = ''
format = '[](bold fg:#000000 bg:#fcf52a)[$symbol( $virtualenv)]($style)[](bold bg:#000000 fg:#fcf52a)' format = '([](bold fg:#XXXXXX bg:#fcf52a)[$virtualenv]($style)[](bold bg:#XXXXXX fg:#fcf52a))'
[custom.toolbox] [custom.toolbox]
style = "bold bg:#01568e fg:bright-white" style = "bold bg:#XXXXXX fg:bright-white"
command = "echo -ne 'toolbox '" command = "echo -ne 'toolbox '"
when = '[ -f /run/.toolboxenv ]' when = '[ -f /run/.toolboxenv ]'
[custom.localhost] [custom.localhost]
style = "bold bg:#01568e fg:bright-white" style = "bold bg:#XXXXXX fg:bright-white"
command = "echo -ne $HOSTNAME " command = "echo -ne $HOSTNAME "
when = '[ ! -f /run/.toolboxenv ]' when = '[ ! -f /run/.toolboxenv ]'

1
starship.voyager.color Normal file
View File

@@ -0,0 +1 @@
#01568e