Obsidian CLI on Mac Presumes ZSH

Steps to reproduce

Install CLI by enabling “Command line interface” on Mac

Did you follow the troubleshooting guide? [Y/N]

Yes

Expected result

“$PATH:/Applications/Obsidian.app/Contents/MacOS” is injected into $PATH.

Actual result

“$PATH:/Applications/Obsidian.app/Contents/MacOS" is added to $PATH in .zprofile


Additional information

The user’s shell should be determined via the $SHELL environment variable, and handled accordingly. ZSH should not be presumed.

This is currently how it works though (as of the public release of Obsidian 1.12.4), as stated in the doc: Obsidian CLI > MacOS :woman_shrugging:

macOS

The CLI registration adds the Obsidian binary directory to your PATH via ~/.zprofile.

Some changes have been made to how the CLI is registered (in between other things) on Mac (at least) in the Catalyst/Insider/Beta release of Obsidian 1.12.5 though :blush:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.