2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-03-31 02:33:23 +00:00

fix!: default SHLVL to 0 instead of 1

This commit is contained in:
TorchedSammy 2021-11-28 23:19:14 -04:00
parent ce0b2ab955
commit 34778a4bdf
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD

View File

@ -7,7 +7,7 @@ require 'succulent' -- Function additions
local oldDir = hilbish.cwd()
local shlvl = tonumber(os.getenv 'SHLVL')
if shlvl ~= nil then os.setenv('SHLVL', shlvl + 1) else os.setenv('SHLVL', 1) end
if shlvl ~= nil then os.setenv('SHLVL', shlvl + 1) else os.setenv('SHLVL', 0) end
-- Builtins
local recentDirs = {}