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