zsh: Added helper function to convert webp to jpg

This commit is contained in:
Felipe M 2021-01-27 11:09:20 +01:00
parent 3572cee7ea
commit c22fd22249
Signed by: fmartingr
GPG Key ID: 716BC147715E716F
1 changed files with 8 additions and 0 deletions

8
.zshrc
View File

@ -7,6 +7,14 @@ source $ZSH/oh-my-zsh.sh
alias magit="emacs -nw --eval '(progn (magit-status) (delete-other-windows))'"
alias ytdlf="youtube-dl -a ./youtube-dl.txt -f best -o \"./%(playlist_title)s/%(playlist_index)s_%(title)s.%(ext)s\""
function webp2jpg {
for x in ls *.webp; do
ffmpeg -i "$x" "${x%.webp}.jpg";
done
rm *.webp
}
# GPG tty
export GPG_TTY=$(tty)