mirror of
https://github.com/nikdoof/dotfiles.git
synced 2025-12-23 15:59:21 +00:00
Update Add-SshKey function in Windows and Linux
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# Add a SSH key to SSH-Agent
|
||||
function Add-Key {
|
||||
function Add-SshKey {
|
||||
if ($args.Count -gt 0) {
|
||||
$filename = "$ENV:USERPROFILE\.ssh\id_ed25519_" + $args[0]
|
||||
if (!(Test-Path $filename -PathType Leaf)) {
|
||||
|
||||
Reference in New Issue
Block a user