2
2
spegling av https://github.com/Hilbis/Hilbish synced 2025-07-18 16:52:02 +00:00

fix: make sure args to setenv are strings in prelude

This commit is contained in:
TorchedSammy 2022-03-28 21:06:45 -04:00
förälder 506f90de06
incheckning c0b08a340a
Signerad av: sammyette
GPG-nyckel ID: 904FC49417B44DCD

Visa fil

@ -8,7 +8,7 @@ local _ = 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', 0) end
if shlvl ~= nil then os.setenv('SHLVL', tostring(shlvl + 1)) else os.setenv('SHLVL', '0') end
-- Builtins
local recentDirs = {}