From 8eccc9659afd6a49f5d4d0ae54a4090af47a9154 Mon Sep 17 00:00:00 2001 From: Michael Campagnaro Date: Wed, 4 Jan 2023 22:24:46 -0500 Subject: [PATCH] Clean up some aliases --- aliases | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/aliases b/aliases index 7e43985..0f757f5 100644 --- a/aliases +++ b/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 \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'