Small tweaks
This commit is contained in:
18
.aliases
18
.aliases
@@ -230,13 +230,15 @@ if [[ "${platform,,}" == *'ming'* ]]; then
|
||||
_checksum() {
|
||||
local algo="$1"
|
||||
local file="$2"
|
||||
certutil -hashfile $file $algo
|
||||
certutil -hashfile "$file" $algo
|
||||
}
|
||||
alias checksum='certutil -hashfile'
|
||||
alias checksum-md5='_checksum MD5'
|
||||
alias checksum-sha1='_checksum SHA1'
|
||||
alias checksum-sha256='_checksum SHA256'
|
||||
alias checksum-sha512='_checksum SHA512'
|
||||
|
||||
# I use delegating to certutil via _checksum() but these programs are faster.
|
||||
alias checksum-md5='md5sum.exe'
|
||||
alias checksum-sha1='sha1sum.exe'
|
||||
alias checksum-sha256='sha256sum.exe'
|
||||
alias checksum-sha512='sha512sum.exe'
|
||||
fi
|
||||
|
||||
check_signature() {
|
||||
@@ -1285,11 +1287,13 @@ alias tv='echo can just do a cv with a time range...' #trim-video-vbr'
|
||||
|
||||
function compress_and_normalize_volume() {
|
||||
local final_name="$1"
|
||||
shift 1
|
||||
local opts="$@"
|
||||
if [[ $final_name == "" ]]; then
|
||||
error "Provide a final file name"
|
||||
error "Provide a final file name and optional args for compress-video"
|
||||
return
|
||||
fi
|
||||
compress-video f.mp4 ff ; normalize-volume ff.mp4 "$final_name"
|
||||
compress-video f.mp4 ff $opts ; normalize-volume ff.mp4 "$final_name"
|
||||
}
|
||||
|
||||
alias cvn='compress_and_normalize_volume'
|
||||
|
||||
Reference in New Issue
Block a user