Ji4n1ng / OpenInTerminal

✨ Finder Toolbar app for macOS to open the current directory in Terminal, iTerm, Hyper or Alacritty.
MIT License
5.92k stars 234 forks source link

Add support for nix-darwin's Nix Apps directory #209

Open amsam0 opened 10 months ago

amsam0 commented 10 months ago

Summary of this pull request

This PR adds support for apps installed via nix-darwin. nix-darwin installs apps into a symlinked directory at /Applications/Nix Apps. Since OpenInTerminal ignores aliases/symlinks, these apps were previously not picked up.

It also includes fixes for nixpkgs's iTerm, IntelliJ IDEA Community Edition, and PyCharm Community Edition packages. nix installs iTerm as iTerm2.app, and IntelliJ and PyCharm with CE appended to the app name. OpenInTerminal did not previously recognize these names.

Does this solve an existing issue? If so, add a link to it

183, partially. It does not add support for nix installed apps without a .app

Steps to test this feature

  1. Install nix-darwin
  2. Install an app by adding it to your environment.systemPackages, for example iterm2

Screenshots

-

Additional info

-