Skip to content

Instantly share code, notes, and snippets.

@pesader
Last active May 10, 2023 19:04
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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