From 0fd585e424d124fa62e741b83b98fafddbde55b1 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Wed, 22 Jul 2020 22:05:47 +0100 Subject: [PATCH] Add Clear-SshKeys function to PS --- posh/Microsoft.PowerShell_profile.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/posh/Microsoft.PowerShell_profile.ps1 b/posh/Microsoft.PowerShell_profile.ps1 index 4590196..6b37621 100644 --- a/posh/Microsoft.PowerShell_profile.ps1 +++ b/posh/Microsoft.PowerShell_profile.ps1 @@ -14,6 +14,10 @@ function Add-SshKey { } } +function Clear-SshKeys { + Invoke-Expression "ssh-add -D" +} + function Update-Dotfiles { Join-Path $HOME '.dotfiles' | Push-Location Invoke-Expression -Command "git pull --rebase --autostash"