Skip to content

Software

Mac Commands

Update default app for code files (remove xcode... too slow):

$ brew install duti
$ osascript -e 'id of app "Zed"' # find bundle id for app
$ duti -s com.microsoft.VSCode .py all
$ duti -s dev.zed.Zed .js all

Or you can right click file get info and change default application to open file type

Webdev

Kill a localhost that I forgot to close in prior session

$ lsof -i :8000     # check if port is active
$ kill <PID>        # kill that port

Open source html in browser (hotkey to viewsource)

cmd + u

Webdev database build