mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-10 04:54:03 -08:00
parent
a184317279
commit
dc002fc1e1
|
@ -7,16 +7,7 @@ if '::UPGRADE::' == 'true' then
|
|||
end
|
||||
|
||||
-- Cache PID
|
||||
|
||||
function generateCustomUUID()
|
||||
local template = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
|
||||
return string.gsub(template, '[x]', function(c)
|
||||
local v = math.random(0, 0xf)
|
||||
return string.format('%x', v)
|
||||
end)
|
||||
end
|
||||
|
||||
os.setenv("POSH_PID", generateCustomUUID())
|
||||
os.setenv("POSH_PID", os.getpid())
|
||||
|
||||
-- Helper functions
|
||||
|
||||
|
|
Loading…
Reference in a new issue