#!/bin/bash echo "lazyass MAKE aliases..." alias m='make' alias mc='m clean' alias mi='m install' alias md='m develop' function heck_rm_o_and_d_files_recurse() { rm -v $(find . | grep -E '\.o$|\.d$') } function heck_realpath() { python3 -c 'import sys, os; print(os.path.realpath(sys.argv[1]))' $1 } # Print filenames matching grep $1 function heck_fmatch() { grep -ri $1 * | perl -pe 's/\:.*?\n/\n/g' | sort -u } alias heck_yt2mp3='yt-dlp -x --audio-quality 0 --audio-format mp3' function heck_yt_audio { yt-dlp -x --audio-format mp3 $1 } function heck_ts_to_mp4_replace() { for i in $(find . | grep .ts$); do { ffmpeg -i $i -c copy $i.mp4 mv $i /tmp }; done }