I have a directory,
~/Downloads, which has accidentally become associated with
Terminal.app. I would like to remove the association so that the directory can be used with
Finder.app again. Thus far, I have investigated extended attributes with
xattr, but this isn't the right method to remove associations. How does one fix a problem like this? Please see the illustration below.
This is macOS 10.13.6.
It appears to have been done by copying a Keynote "file" to the directory.
cp -rp file.key/ ~/Downloads/