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
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
|
@ -602,8 +602,8 @@ dl_twitch_vid() {
|
|||
if [[ $error -eq 0 ]]; then
|
||||
if [[ $compress -eq 1 ]]; then
|
||||
local temp_name="temp_${RANDOM}"
|
||||
# 1 arg = use GPU
|
||||
compress-video 0 "$filename" "$temp_name"
|
||||
# 0=cpu, 1=gpu
|
||||
compress-video "$filename" "$temp_name" 0
|
||||
extension="${filename##*.}"
|
||||
mv "$filename" "orig_$filename"
|
||||
mv $temp_name.$extension "$filename"
|
||||
|
@ -665,8 +665,8 @@ dl_vimeo_vid() {
|
|||
if [[ $error -eq 0 ]]; then
|
||||
if [[ $compress -eq 1 ]]; then
|
||||
local temp_name="temp_${RANDOM}"
|
||||
# 1 arg = use GPU
|
||||
compress-video 1 "$filename" "$temp_name"
|
||||
# 0=cpu, 1=gpu
|
||||
compress-video "$filename" "$temp_name" 0
|
||||
extension="${filename##*.}"
|
||||
mv "$filename" "orig_$filename"
|
||||
mv $temp_name.$extension "$filename"
|
||||
|
@ -878,8 +878,8 @@ function _compress_video_hard() {
|
|||
error "Format: cmd <source> <dest>\n"
|
||||
return
|
||||
fi
|
||||
# 1 arg = use GPU
|
||||
compress-video-with-crf 1 $crf "$name" "$out"
|
||||
# 0=cpu, 1=gpu
|
||||
compress-video-with-crf $crf "$name" "$out" 0
|
||||
}
|
||||
|
||||
alias compress-video-hard='_compress_video_hard'
|
||||
|
|
Loading…
Reference in New Issue
Block a user