Tuesday, April 23, 2024
HomeWeb developmentDecide Default App for File Kind from Command Line

Decide Default App for File Kind from Command Line


One high quality of life enchancment any developer could make for themselves is making certain completely different file varieties open within the app they’re most proficient in. If you recognize me, you recognize I favor undertaking as a lot as potential from the command line. The duti utility permits customers to find out default file kind from command line.

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

brew set up duti

After getting duti obtainable, you may examine on the default app for file kind with the next command:

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

You may set the default app by utilizing its package deal:

duti -s com.sublimetext.2 .js all

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

  • From Webcam to Animated GIF: the Secret Behind chat.meatspac.es!
  • Write Better JavaScript with Promises

    You’ve got most likely heard the discuss across the water cooler about how guarantees are the long run. The entire cool children are utilizing them, however you do not see what makes them so particular. Cannot you simply use a callback? What is the massive deal? On this article, we’ll…

  • afterscriptexecute Event
  • FileReader API

    As broadband pace continues to get sooner, the net continues to be extra media-centric.  Generally that may be good (Netflix, different streaming providers), typically that may be unhealthy (desirous to learn a information article but it surely has an accompanying ineffective video with it).  And each social service does…


RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments