Clean up some aliases
This commit is contained in:
parent
45d3fa244a
commit
8eccc9659a
26
aliases
26
aliases
|
@ -130,37 +130,37 @@ open_explorer_here() {
|
||||||
|
|
||||||
# Dev build
|
# Dev build
|
||||||
b() {
|
b() {
|
||||||
if [ -f build ]; then ./build $@ ; else test -f build.sh && ./build.sh $@ ; fi
|
test -f build && ./build $@ ; test -f build.sh && ./build.sh $@ ; test -f build.jai && ./build.jai $@
|
||||||
}
|
}
|
||||||
|
|
||||||
# fast dev build
|
# fast dev build
|
||||||
bf() {
|
bf() {
|
||||||
if [ -f build ]; then ./build $@ -fast ; else test -f build.sh && ./build.sh $@ -fast ; fi
|
test -f build && ./build $@ -fast ; test -f build.sh && ./build.sh $@ -fast ; test -f build.jai && ./build.jai $@
|
||||||
}
|
}
|
||||||
|
|
||||||
# Optimized dev build
|
# Optimized dev build
|
||||||
bb() {
|
bb() {
|
||||||
if [ -f build ]; then ./build -o 1 $@ ; else test -f build.sh && ./build.sh -o 1 $@ ; fi
|
test -f build && ./build $@ -o 1 ; test -f build.sh && ./build.sh $@ -o 1 ; test -f build.jai && ./build.jai -release $@
|
||||||
}
|
}
|
||||||
|
|
||||||
# Production build
|
# Production build
|
||||||
bp() {
|
bp() {
|
||||||
if [ -f build ]; then ./build -p p $@ ; else test -f build.sh && ./build.sh -p p $@ ; fi
|
test -f build && ./build $@ -p p ; test -f build.sh && ./build.sh $@ -p p ; test -f build.jai && ./build.jai -release $@ - -prod
|
||||||
}
|
}
|
||||||
|
|
||||||
# Profiling build
|
# Profiling build
|
||||||
bpf() {
|
bpf() {
|
||||||
if [ -f build ]; then ./build -p pf $@ ; else test -f build.sh && ./build.sh -p pf $@ ; fi
|
test -f build && ./build $@ -p pf ; test -f build.sh && ./build.sh $@ -p pf
|
||||||
}
|
}
|
||||||
|
|
||||||
# GPU profiling build
|
# GPU profiling build
|
||||||
bgpf() {
|
bgpf() {
|
||||||
if [ -f build ]; then ./build -p gpu $@ ; else test -f build.sh && ./build.sh -p gpu $@ ; fi
|
test -f build && ./build $@ -p gpu ; test -f build.sh && ./build.sh $@ -p gpu
|
||||||
}
|
}
|
||||||
|
|
||||||
# Run build
|
# Run build
|
||||||
r() {
|
r() {
|
||||||
if [ -f run ]; then ./run $@ ; else test -f run.sh && ./run.sh $@ ; fi
|
test -f run && ./run $@ ; test -f run.sh && ./run.sh $@
|
||||||
}
|
}
|
||||||
|
|
||||||
# Build then run
|
# Build then run
|
||||||
|
@ -602,8 +602,8 @@ dl_twitch_vid() {
|
||||||
if [[ $error -eq 0 ]]; then
|
if [[ $error -eq 0 ]]; then
|
||||||
if [[ $compress -eq 1 ]]; then
|
if [[ $compress -eq 1 ]]; then
|
||||||
local temp_name="temp_${RANDOM}"
|
local temp_name="temp_${RANDOM}"
|
||||||
# 1 arg = use GPU
|
# 0=cpu, 1=gpu
|
||||||
compress-video 0 "$filename" "$temp_name"
|
compress-video "$filename" "$temp_name" 0
|
||||||
extension="${filename##*.}"
|
extension="${filename##*.}"
|
||||||
mv "$filename" "orig_$filename"
|
mv "$filename" "orig_$filename"
|
||||||
mv $temp_name.$extension "$filename"
|
mv $temp_name.$extension "$filename"
|
||||||
|
@ -665,8 +665,8 @@ dl_vimeo_vid() {
|
||||||
if [[ $error -eq 0 ]]; then
|
if [[ $error -eq 0 ]]; then
|
||||||
if [[ $compress -eq 1 ]]; then
|
if [[ $compress -eq 1 ]]; then
|
||||||
local temp_name="temp_${RANDOM}"
|
local temp_name="temp_${RANDOM}"
|
||||||
# 1 arg = use GPU
|
# 0=cpu, 1=gpu
|
||||||
compress-video 1 "$filename" "$temp_name"
|
compress-video "$filename" "$temp_name" 0
|
||||||
extension="${filename##*.}"
|
extension="${filename##*.}"
|
||||||
mv "$filename" "orig_$filename"
|
mv "$filename" "orig_$filename"
|
||||||
mv $temp_name.$extension "$filename"
|
mv $temp_name.$extension "$filename"
|
||||||
|
@ -878,8 +878,8 @@ function _compress_video_hard() {
|
||||||
error "Format: cmd <source> <dest>\n"
|
error "Format: cmd <source> <dest>\n"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
# 1 arg = use GPU
|
# 0=cpu, 1=gpu
|
||||||
compress-video-with-crf 1 $crf "$name" "$out"
|
compress-video-with-crf $crf "$name" "$out" 0
|
||||||
}
|
}
|
||||||
|
|
||||||
alias compress-video-hard='_compress_video_hard'
|
alias compress-video-hard='_compress_video_hard'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user