From 4f78f0cdeda7a151c8f503df44a5208b0fd8e959 Mon Sep 17 00:00:00 2001 From: Kid Date: Sun, 20 Jun 2021 15:31:50 +0800 Subject: [PATCH] Run function in subshell --- tests/_tide_item_shlvl.test.fish | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/_tide_item_shlvl.test.fish b/tests/_tide_item_shlvl.test.fish index ca49e47..7d4daf9 100644 --- a/tests/_tide_item_shlvl.test.fish +++ b/tests/_tide_item_shlvl.test.fish @@ -1,11 +1,9 @@ # RUN: %fish %s function _shlvl - _tide_decolor (_tide_item_shlvl) + _tide_decolor (fish -c _tide_item_shlvl) end -set -lx SHLVL 2 - _shlvl # CHECK: ↕️ 2 set -lx tide_shlvl_threshold 2