Skip to content

Instantly share code, notes, and snippets.

View codekoenig's full-sized avatar

Bernhard Koenig codekoenig

View GitHub Profile
@codekoenig
codekoenig / .bashrc
Last active February 16, 2022 13:17
Shell Profiles
eval "$(oh-my-posh --init --shell bash --config ~/.poshthemes/bkoenig.omp.json)"
@codekoenig
codekoenig / deletevscodecreds.ps1
Last active November 22, 2024 10:05
Delete all VSCode credentials in Windows Credentials Manager
<#
VSCode has a bug where it fills up the Windows Credentials Manager with credentials up to the point where no new credentials can be added.
This leads to multiple issues, one of them for example that VSCode itself cannot store any more credentials there.
You'll notice this when you have to sign in to your Microsoft or Github account in VSCode after each restart.
#>
# List all VSCode entries in Windows Credential Manager
cmdkey /list | ForEach-Object{if($_ -like "*Target:*" -and $_ -like "*vscodevscode.microsoft-*"){echo $_.substring(30)}}
# Delete all VSCode credential entries in Windows Credential Manager