0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Obsidian CLI のパスが fish shell に通ってない問題を解決

0
Last updated at Posted at 2026-03-01

背景

Obsidian v1.12.4 でCLIが利用可能になったということで、"コマンドラインインターフェース" を有効化。
しかし、Obsidian のzsh には PATH が通るが fish には反映されていなかった。(.zprofileが更新されるだけだった)

環境

  • OS: macOS Tahoe
  • Obsidian: v1.12.4
  • Shell: fish shell

解決策

手作業でPATHを通せばいいが、/Applications/Obsidian.app/Contents/MacOS/Obsidian のシンボリックリンクを /usr/local/bin/obsidian に作成して実行しようとすると、Unable to find helper app とエラーが出て GUI が正常にしない。
起動用のシェルスクリプトを呼べるようにしてもいいが、シンプルさに欠けるのでfish の abbr対応した。

設定方法

fishのconfigに以下を設定。(自分は ~/.config/fish/conf.d/alias.fish)

abbr -a obsidian "/Applications/Obsidian.app/Contents/MacOS/Obsidian"

余談

# Obsidian CLIを起動
/Applications/Obsidian.app/Contents/MacOS/Obsidian

# Obsidian GUIを起動
open -a '/Applications/Obsidian.app/Contents/MacOS/Obsidian'
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?