13 lines
348 B
Fish
13 lines
348 B
Fish
#!/usr/bin/env fish
|
|
|
|
{{ $sshDir := joinPath .chezmoi.homeDir ".ssh" -}}
|
|
{{ $pubKey := joinPath $sshDir "id_ed25519.pub" -}}
|
|
{{ $privKey := joinPath $sshDir "id_ed25519" -}}
|
|
|
|
if test -e {{ $pubKey }}
|
|
mv {{ $pubKey }} {{ printf "%s%s" $pubKey ".bak" }}
|
|
end
|
|
|
|
if test -e {{ $privKey }}
|
|
mv {{ $privKey }} {{ printf "%s%s" $privKey ".bak" }}
|
|
end
|