shells/zsh: add disgetconvv for video
This commit is contained in:
parent
87c9ff22c6
commit
102e57dddf
1 changed files with 9 additions and 0 deletions
|
@ -119,6 +119,15 @@
|
|||
shift 1
|
||||
magick "$tmpFile" "$@"
|
||||
}
|
||||
|
||||
disgetconvv() {
|
||||
url="$1"
|
||||
tmpFileName="''${$(basename "$url")%%\?*}.XXX"
|
||||
tmpFile=$(mktemp -t $tmpFileName)
|
||||
curl "$url" --output "$tmpFile"
|
||||
shift 1
|
||||
ffmpeg -i "$tmpFile" "$@"
|
||||
}
|
||||
'';
|
||||
|
||||
dotDir = ".config/zsh";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue