From e8b2443cd7b65f8269b3fcf0377a5870a957bd47 Mon Sep 17 00:00:00 2001 From: jazzsnobeatcake <85142501+jazzsnobeatcake@users.noreply.github.com> Date: Mon, 19 Sep 2022 22:53:20 +0200 Subject: [PATCH] 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 --- functions/_tide_item_toolbox.fish | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/functions/_tide_item_toolbox.fish b/functions/_tide_item_toolbox.fish index 28975d3..0b33f29 100644 --- a/functions/_tide_item_toolbox.fish +++ b/functions/_tide_item_toolbox.fish @@ -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="(.*)"'