From 1f7ccd5176616663e7b18982c49585950c332609 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sun, 8 Oct 2023 19:56:59 +0200 Subject: [PATCH] use zip instead of tar.gz, also print the location of the archive --- .config/fish/functions/ssh-export.fish | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.config/fish/functions/ssh-export.fish b/.config/fish/functions/ssh-export.fish index f68028e..3ba7dae 100644 --- a/.config/fish/functions/ssh-export.fish +++ b/.config/fish/functions/ssh-export.fish @@ -3,9 +3,12 @@ function ssh-export set entry_directory "$PWD" # Create the archive + set output_file "$HOME/ssh_keys.zip" cd "$HOME/.ssh" - tar cz --exclude='known_hosts*' -X environment -f "$HOME/SSH.tar.gz" * + zip "$output_file" * -x 'known_hosts*' -x environment # Returns to the entry directory cd "$entry_directory" + + echo "Exported at $output_file." end