Some aliases (Docker on M1 Mac, sudo Touch ID, etc.)

Got tired of recreating a docker line so I could run some linux commands (looking at you Yafuflash) from within the terminal. Didn’t seem like a good use of the Compose either.

alias ubuntu="docker run --rm -it --platform linux/amd64 -v ~/Downloads:/Downloads ubuntu-roach bash"

Apple kills this off after every update, but being able to use Touch ID for sudo instead of a password is Tier S kinda shite. This reenables after an update.

alias enable-sudo-touch-id="sudo sed -i -e '2s;^;auth       sufficient     pam_tid.so\n;' /etc/pam.d/sudo"

Miscellaneous and hopefully self-explanatory stuff.

alias dnsrestart="sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder"

Leave a Reply

Your email address will not be published. Required fields are marked *