Run function in subshell

This commit is contained in:
Kid 2021-06-20 15:31:50 +08:00
parent a8a0bf5b32
commit 4f78f0cded

View File

@ -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