summaryrefslogtreecommitdiff
path: root/home-config/fish/functions/_tide_item_shlvl.fish
diff options
context:
space:
mode:
Diffstat (limited to 'home-config/fish/functions/_tide_item_shlvl.fish')
-rw-r--r--home-config/fish/functions/_tide_item_shlvl.fish4
1 files changed, 4 insertions, 0 deletions
diff --git a/home-config/fish/functions/_tide_item_shlvl.fish b/home-config/fish/functions/_tide_item_shlvl.fish
new file mode 100644
index 0000000..95dd5ff
--- /dev/null
+++ b/home-config/fish/functions/_tide_item_shlvl.fish
@@ -0,0 +1,4 @@
1function _tide_item_shlvl
2 # Non-interactive shells do not increment SHLVL, so we don't need to subtract 1
3 test $SHLVL -gt $tide_shlvl_threshold && _tide_print_item shlvl $tide_shlvl_icon' ' $SHLVL
4end