perf(init/pwsh): use get-random for session-key instead of invoking starship session (#1860)

This commit is contained in:
David Knaack
2020-11-08 11:07:25 +01:00
committed by GitHub
parent 7450510327
commit 35a0a20f5c
+1 -1
View File
@@ -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]$_ })