tide/functions/_tide_item_distrobox.fish
Taha 0cf2993d37
Fix distrobox prompt support (#351)
* Fix distrobox prompt support

* Fix distrobox prompt support

* Fix distrobox prompt support

* Fix distrobox prompt support

* Fix distrobox prompt support

* Fix distrobox prompt support

* Simplify and format

* Fix distrobox prompt support

* Remove extraneous command

Co-authored-by: Ilan Cosman <ilancosman@gmail.com>
2022-10-14 14:10:27 -07:00

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