From ea44a161a47679cfb87c3903b569fefee703ecad Mon Sep 17 00:00:00 2001 From: Bauke Date: Fri, 20 Jan 2023 11:09:01 +0100 Subject: [PATCH] Add descriptions to functions. --- .functions.zsh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.functions.zsh b/.functions.zsh index 3165f96..ec9e67b 100644 --- a/.functions.zsh +++ b/.functions.zsh @@ -1,11 +1,17 @@ +# Copies a section from a video using ffmpeg. +# extract-clip extract-clip () { ffmpeg -i "$1" -ss "$2" -to "$3" -c copy "$4" } +# Creates a new signed, annotated git tag. +# gtag gtag () { git tag -s -a "$1" -m "Version $1" } +# Tries to find a feed URL for any given URLs. +# get-feed-url get-feed-url () { for input_url in "$@"; do html=$(curl -fsLS "$input_url") @@ -15,6 +21,8 @@ get-feed-url () { done } +# Converts any given files to 128K Opus using ffmpeg. +# to-opus to-opus () { for input_file in "$@"; do output_file="${input_file%.*}.opus"