perf(init/pwsh): use get-random for session-key instead of invoking starship session (#1860)
This commit is contained in:
parent
7450510327
commit
35a0a20f5c
|
@ -66,4 +66,4 @@ function global:prompt {
|
|||
$ENV:STARSHIP_SHELL = "powershell"
|
||||
|
||||
# Set up the session key that will be used to store logs
|
||||
$ENV:STARSHIP_SESSION_KEY = (& ::STARSHIP:: session)
|
||||
$ENV:STARSHIP_SESSION_KEY = -join ((48..57) + (65..90) + (97..122) | Get-Random -Count 16 | ForEach-Object { [char]$_ })
|
||||
|
|
Loading…
Reference in New Issue