Skip to content

Instantly share code, notes, and snippets.

@pesader
Last active May 9, 2024 05:22
Show Gist options
  • Save pesader/2fb289f7fd57039bd0190087f347cd79 to your computer and use it in GitHub Desktop.
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
[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