This commit is contained in:
2024-05-26 09:05:55 -05:00
parent 5969895920
commit 31d12f7d28
10 changed files with 67 additions and 1 deletions

View File

@@ -24,3 +24,18 @@ Set-PSReadLineOption -PredictionSource History
$env:POWERSHELL_TELEMETRY_OPTOUT = 1
$env:DOTNET_CLI_TELEMETRY_OPTOUT = 1
$tokens = @(
@{
name = "GITLAB_TOKEN"
value = "cli-gitlab"
}
)
function unlockbw {
$env:BW_SESSION = "$(bw unlock --raw)"
foreach ($token in $tokens) {
Set-Variable -Name $token.name -Value $(bw get password $token.value) -Scope script
}
}