From bb0370ae7beb989111fd6f74268f0c7b49db029b Mon Sep 17 00:00:00 2001 From: MorganGeek Date: Thu, 23 Jul 2020 07:30:19 +0200 Subject: [PATCH] function for converting epub to mobi files --- dot_zsh_functions | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/dot_zsh_functions b/dot_zsh_functions index 65354c6..5a3ebb1 100644 --- a/dot_zsh_functions +++ b/dot_zsh_functions @@ -352,8 +352,12 @@ function mouse() { # Conversion function epub2pdf() { - local epub_file_name=$(echo $1 | sed 's/.epub$/.pdf/') - ebook-convert "$1" "$epub_file_name" + local output_file_name=$(echo $1 | sed 's/.epub$/.pdf/') + ebook-convert "$1" "$output_file_name" +} +function epub2mobi() { + local output_file_name=$(echo $1 | sed 's/.epub$/.mobi/') + ebook-convert "$1" "$output_file_name" } # Information gathering