Determine Default App for File Type from Command Line
One quality of life improvement any developer can make for themselves is ensuring different file types open in the app they're most proficient in. If you know me, you know I prefer accomplishing as much as possible from the command line. The duti
utility allows users to determine default file type from command line.
The duti
utility allows developers to query which app is the default for different file types. You can install duti
with brew
:
brew install duti
Once you have duti
available, you can check on the default app for file type with the following command:
~ duti -x md
Xcode.app
/Applications/Xcode.app
com.apple.dt.Xcode
You can set the default app by using its package:
duti -s com.sublimetext.2 .js all
The duti
utility is really great for determining and automating default app management!
Today we get to play amazing games on our super powered game consoles, PCs, VR headsets, and even mobile devices. While I enjoy playing new games these days, I do long for the retro gaming systems I had when I was a kid: the original Nintendo...
I spent a few months experimenting with different approaches for writing simple, elegant and maintainable media queries with Sass. Each solution had something that I really liked, but I couldn't find one that covered everything I needed to do, so I ventured into creating my...
One thing I love doing is duplicating OS functionalities. One of the things your OS allows you to do easily is move from one item to another. Most of the time you're simply trying to get to the next or the previous item.
There's a very interesting piece of code on Google Code called FontAvailable which does a jQuery-based JavaScript check on a string to check whether or not your system has a specific font based upon its output width. I've ported this functionality to MooTools.
The MooTools...