Add Powershell Profile

This commit is contained in:
2020-07-14 16:21:04 +01:00
parent faf3e58c0c
commit 686e447d5d

View File

@@ -0,0 +1,19 @@
# Add a SSH key to SSH-Agent
function Add-Key {
if ($args.Count -gt 0) {
$filename = "$ENV:USERPROFILE/.ssh/id_ed25519_" + $args[0]
if (!(Test-Path $filename -PathType Leaf)) {
Write-Error "$filename does not exist."
}
else {
Invoke-Expression "ssh-add $filename"
}
}
else {
Invoke-Expression "ssh-add -L"
}
}
Import-Module posh-git
Import-Module oh-my-posh
Set-Theme Paradox