From ec743ecc38f85f5ad865e8bdeebf09cfe246a6eb Mon Sep 17 00:00:00 2001 From: Hadeed Ahmad Date: Wed, 23 Aug 2023 04:42:42 +0500 Subject: [PATCH] Add function to save ssh keys --- zsh/zsh-functions | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/zsh/zsh-functions b/zsh/zsh-functions index 08451e0..0b318dd 100644 --- a/zsh/zsh-functions +++ b/zsh/zsh-functions @@ -16,4 +16,9 @@ function serve() { ruby -run -e httpd . -p 3000 } +function save-ssh-key() { + mv "$1" "$HOME/.ssh/${1}_${2}" + mv "$1.pub" "$HOME/.ssh/${1}_${2}.pub" +} + # vim: filetype=zsh