tide/functions/_tide_item_toolbox.fish
jazzsnobeatcake e8b2443cd7
Display toolbox name (#343)
* 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>
2022-09-19 13:53:20 -07:00

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