guix-dotfiles/home-config/fish/functions/_tide_item_distrobox.fish

5 lines
227 B
Fish

function _tide_item_distrobox
test -e /etc/profile.d/distrobox_profile.sh && test -e /run/.containerenv &&
_tide_print_item distrobox $tide_distrobox_icon' ' (string match -rg 'name="(.*)"' </run/.containerenv)
end