mirror of
https://github.com/IlanCosman/tide.git
synced 2024-11-26 09:42:51 +03:00
Update SHLVL item for fish 3.3
This commit is contained in:
parent
7d66b9ed1a
commit
159e99fec8
@ -1,5 +1,4 @@
|
|||||||
function _tide_item_shlvl
|
function _tide_item_shlvl
|
||||||
# Item functions run in a deeper level of shell
|
# Non-interactive shells do not increment SHLVL, so we don't need to subtract 1
|
||||||
set -l real_shlvl (math $SHLVL - 1)
|
test $SHLVL -gt $tide_shlvl_threshold && _tide_print_item shlvl $tide_shlvl_icon' ' $SHLVL
|
||||||
test $real_shlvl -gt $tide_shlvl_threshold && _tide_print_item shlvl $tide_shlvl_icon' ' $real_shlvl
|
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user