Last active
May 9, 2024 05:22
-
-
Save pesader/2fb289f7fd57039bd0190087f347cd79 to your computer and use it in GitHub Desktop.
[Display toolbx information on starship prompt] Show distro and container name on the shell prompt #starship #toolbox #podman
This file contains 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
[custom.toolbox] | |
description = "The activated toolbox container" | |
command = "echo $(. /var/run/.containerenv; echo ${name}: ${DISTTAG%container})" | |
when = """ [[ -f /run/.containerenv && -f /run/.toolboxenv ]] """ | |
style = "bold red" | |
format = "[\\[$output\\]]($style) " | |
disabled = false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment