mirror of
https://github.com/IlanCosman/tide.git
synced 2024-12-23 03:52:12 +03:00
e8b2443cd7
* 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
|