While working as a web dev for VirZOOM, and later doing embedded programming and scripting at Desktop Metal, I’ve accumulated some aliases in my ~/.bash_profile which speed up my workflow:
alias airport='/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport' alias aliases='cat ~/.bash_profile ~/.zshrc | pcregrep -M "^alias" | sort' alias boom='cd ~/experimental && atom .' alias catall='find * | xargs cat' alias cloc='find . -name "*.c" -o -name "*.h" -maxdepth 5 | xargs wc -l | sort' alias cpploc='find . -name "*.cpp" -o -name "*.hpp" -maxdepth 5 | xargs wc -l | sort' alias creport="coverage run --source='.' manage.py test && coverage report -m --skip-covered" alias dupes='echo "$(find . -maxdepth 5 -type f -exec shasum -a 256 {} + | sort -k 1,1 --unique | cut -c 69-)\n$(ls)" | sort | uniq -u' alias egrep='egrep --color=auto' alias fgrep='fgrep --color=auto' alias flatten='find . -mindepth 2 -type f -exec mv -i "{}" . ";"' alias gofmtall='find . -name "*.go" -maxdepth 5 -not -path "./vendor/*" | xargs gofmt -w' alias goloc='find . -name "*.go" -not -path "./vendor/*" -maxdepth 5 | xargs wc -l | sort' alias grep='grep --color=auto' alias htmlloc='find . -name "*.html" -maxdepth 5 | xargs wc -l sort' alias jsc='/System/Library/Frameworks/JavaScriptCore.framework/Versions/Current/Resources/jsc' alias makewatch="find * | entr make" alias mjml-c='find . -name "*.mjml" -maxdepth 5 | parallel mjml {} -o {.}.html' alias phploc='find . -name "*.php" -not -path "./vendor/*" -not -path "./storage/*" -maxdepth 5 | xargs wc -l sort' alias plz="fc -l -1 | cut -d' ' -f2- | xargs sudo" alias pyloc='find . -name "*.py" -maxdepth 5 | xargs wc -l | sort' alias rmdupes='dupes | xargs rm' aliassha512sum='shasum -a 512' alias sizeof='stat -f "%N %z"' alias vm="cd ~/Homestead && vagrant up && cd -"
I most commonly use “gofmtall” for normalizing formatting in my Golang projects, “makewatch” for continuous builds on projects with Makefiles, and “sizeof” to benchmark the size of executable targets.