moretension / duti

A command-line tool to select default applications for document types and URL schemes on Mac OS X
Other
1.48k stars 66 forks source link

How to reassociate dot files? #52

Closed ssbarnea closed 1 year ago

ssbarnea commented 1 year ago

As duti command line interface lacks even a simple --help option, trying to find how to reassociate some file types seems to be a real struggle.

I am trying to avoid the apparently implicit TextEdit that is used for opening these:

# dot files such:
.gitignore
.yamllint
.flake8
# plain text files without any extension such
COPYING

Any hints would be highly appreciated. Thanks

iloveitaly commented 1 year ago

Check out my dotfiles for some examples:

https://github.com/iloveitaly/dotfiles/blob/ea2e0bf0231f69f9a1bcb0b10087e46c422b18d9/duti#L15

Message ID: @.***>

ssbarnea commented 1 year ago

While that example was not able help me I figured it out from another comment:

duti -s com.microsoft.VSCode public.data all

Basically most of the files without an extension are considered to be public.data