mirror of
https://github.com/IlanCosman/tide.git
synced 2024-08-16 11:40:22 +03:00
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>
This commit is contained in:
parent
af6da2d354
commit
e8b2443cd7
@ -1,3 +1,4 @@
|
||||
function _tide_item_toolbox
|
||||
test -e /run/.toolboxenv && _tide_print_item toolbox $tide_toolbox_icon' ' $hostname
|
||||
test -e /run/.toolboxenv &&
|
||||
_tide_print_item toolbox $tide_toolbox_icon' ' (string match -rg 'name="(.*)"' </run/.containerenv)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user