Commit 329cc7582f96

Vincent Demeester <vincent@sbr.pm>
2026-01-12 17:18:54
fix(shpool-ssh-wrapper): source zshenv to set PATH properly
Execute claude through zsh with ~/.zshenv sourced to ensure PATH and other environment variables are set correctly. This fixes "command not found" errors for commands like hostname, cat, etc. that Claude Code tries to execute. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 8731077
Changed files (1)
tools
shpool-ssh-wrapper
tools/shpool-ssh-wrapper/default.nix
@@ -25,8 +25,9 @@ let
     # Change to specified directory
     cd "$1"
 
-    # Use full path since PATH isn't set in non-login shells
-    exec /etc/profiles/per-user/vincent/bin/claude
+    # Execute through zsh with proper environment
+    # zshenv sets up PATH and other environment variables
+    exec ${pkgs.zsh}/bin/zsh -c "source ~/.zshenv; exec /etc/profiles/per-user/vincent/bin/claude"
   '';
 in