asmvik / asmvik/skhd

zsh:1: command not found: yabai

Open
#350 5 comments 2 reactions 0 assignees View on GitHub
Dominant language
C
Stars
8.1k
Forks
241
PR merge metrics
No merged PRs in 30d

Description

I've got `yabai` and `skhd` installed via `brew` and I've got `zsh` configured by nix w/ home-manager.
I'm running the service via `skhd --(start|restart|stop)-service`.

The plist includes the homebrew prefix (`/opt/homebrew/bin:/opt/homebrew/sbin:`) in the PATH environment variable and `echo $PATH` from the shell returns `/opt/homebrew/bin:/opt/homebrew/sbin:..` as expected.

Debugging skhd using: `alt - p : echo $PATH`, the `/tmp/skhd_*.out.log` **does NOT include the homebrew prefix on the path**. I don't understand why. It's in the plist for the service and it's also in my shell. What could I be missing that would mean it's not on the PATH of the service's `zsh` call?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the service launch with the plist and `skhd --start-service`, then compare the PATH from `alt - p : echo $PATH` with the shell environment. Inspect `/tmp/skhd_*.out.log` and the plist environment; done means the service's zsh invocation includes `/opt/homebrew/bin` and can resolve `yabai`.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, zsh
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.