Add support for distrobox
This commit is contained in:
parent
862e544a71
commit
46b6968238
5 changed files with 21 additions and 0 deletions
|
@ -20,6 +20,10 @@ local function distro_traits(name)
|
|||
icon = "",
|
||||
color = "#73ba25",
|
||||
},
|
||||
[ "distrobox" ] = {
|
||||
icon = "[ " .. os.getenv("CONTAINER_ID") .. "]",
|
||||
color = "#917d62",
|
||||
},
|
||||
}
|
||||
|
||||
local icon = icons[name]
|
||||
|
@ -31,6 +35,13 @@ local function distro_traits(name)
|
|||
end
|
||||
|
||||
return function()
|
||||
if os.getenv("CONTAINER_ID") ~= nil then
|
||||
return {
|
||||
name = "distrobox",
|
||||
traits = distro_traits("distrobox"),
|
||||
}
|
||||
end
|
||||
|
||||
local release_file = io.open("/etc/os-release", "rb")
|
||||
if release_file == nil then
|
||||
return {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue