Decide Default App for File Kind from Command Line

0
3

One high quality of life enchancment any developer could make for themselves is making certain completely different file sorts open within the app they’re most proficient in. If you already know me, you already know I want engaging in as a lot as attainable from the command line. The duti utility permits customers to find out default file sort from command line.

The duti utility permits builders to question which app is the default for various file sorts. You may set up duti with brew:

brew set up duti

After you have duti out there, you may test on the default app for file sort with the next command:

~ duti -x md
Xcode.app
/Functions/Xcode.app
com.apple.dt.Xcode

You may set the default app through the use of its bundle:

duti -s com.sublimetext.2 .js all

The duti utility is de facto nice for figuring out and automating default app administration!

  • Tips for Starting with Bitcoin and Cryptocurrencies

    One of the crucial rewarding experiences of my life, each financially and logically, has been shopping for and managing cryptocurrencies like Bitcoin, Litecoin, Ethereum. Like studying every other new tech, I made rookie errors alongside the way in which, however discovered some finest practices alongside the way in which. Try…

  • Regular Expressions for the Rest of Us

    In the end you will run throughout an everyday expression. With their cryptic syntax, complicated documentation and big studying curve, most builders accept copying and pasting them from StackOverflow and hoping they work. However what should you might decode common expressions and harness their energy? In…

  • MooTools onLoad SmoothScrolling

    SmoothScroll is a improbable MooTools plugin however easy scrolling solely happens when the anchor is on the identical web page. Making SmoothScroll work throughout pages is as simple as a couple of additional line of MooTools and a querystring variable. The MooTools / PHP After all, this can be a…

  • JavaScript Copy to Clipboard

    “Copy to clipboard” performance is one thing all of us use dozens of occasions every day however the shopper aspect API round it has all the time been missing; some older APIs and browser implementations required a scary “are you certain?”-style dialog earlier than the content material could be copied to clipboard — not nice for…


LEAVE A REPLY

Please enter your comment!
Please enter your name here