mirror of
https://github.com/IlanCosman/tide.git
synced 2024-09-11 17:15:34 +03:00
* Display toolbox name Displays the toolbox name instead of the word toolbox. $tide_toolbox_icon already indicates we're in a toolbox, displaying the toolbox name adds further context in multi-toolbox environments. * Use string match and redirection Co-authored-by: Ilan Cosman <ilancosman@gmail.com>
5 lines
172 B
Fish
5 lines
172 B
Fish
function _tide_item_toolbox
|
|
test -e /run/.toolboxenv &&
|
|
_tide_print_item toolbox $tide_toolbox_icon' ' (string match -rg 'name="(.*)"' </run/.containerenv)
|
|
end
|