I'd like to understand exactly what's happening before changing anything, because the picker is supposed to grey out non-executables but bw should pass that test. A few possibilities:
- macOS's UTI database hasn't classified /usr/local/bin/bw as a unix executable (not uncommon for files in /usr/local/bin because Spotlight excludes that path by default).
- The Bitwarden installer placed the binary with extended attributes (quarantine, provenance, etc.) that affect Launch Services'classification.
- Architecture mismatch — e.g., the file is x86_64-only and iTerm2 is running natively as arm64, so Launch Services declines to mark it as runnable on this system.
- Something else specific to your install.
Could you run these and send back the output?
sw_vers
uname -m
ls -lO@e /usr/local/bin/bw
file /usr/local/bin/bw
xattr -l /usr/local/bin/bw
codesign -dv /usr/local/bin/bw 2>&1
mdls -name kMDItemContentType -name kMDItemContentTypeTree -name kMDItemKind /usr/local/bin/bw
lsappinfo find lsappinfopath=/usr/local/bin/bw 2>&1 | head
Then, just to test a hypothesis, run:
mdimport /usr/local/bin/bw
mdls -name kMDItemContentType -name kMDItemContentTypeTree /usr/local/bin/bw
…and if that second mdls now reports something containing public.unix-executable, re-open the iTerm2 Bitwarden setup and try selecting bw again. Tell me whether the row is now selectable or still greyed out.
Also useful to know:
1. How did you install bw? Homebrew, npm, the standalone installer from
bitwarden.com, or something else? If you don't remember, `which bw` plus `ls -l $(which bw)` (in case it's a symlink) will help.
2. Which version of iTerm2 are you running (iTerm2 → About iTerm2)? Stable, beta, or a dev build?
3. In the picker, is bw greyed out the same way as everything else in /usr/local/bin, or is it specifically bw that's disabled while other binaries (like git, node, etc.) are selectable? That tells me whether the filter is rejecting all of /usr/local/bin or just this one file.
4. If you click bw even though it's greyed, does anything happen — beep, tooltip, nothing?
Once I see what Launch Services thinks the file is, I'll know whether this is a UTI-classification issue, a quarantine/codesign issue, an architecture issue, or something else,.