Fix Symlink Shebang Persistence

Permanently fix shebang issues in symlinked CLI tools that get overwritten by git updates

vamseeachanta Updated

File contents

Fix Symlink Shebang Persistence

When a symlink points to a git-tracked repo file with a generic shebang (e.g., #!/usr/bin/env python3), edits get overwritten on git pull. Instead of editing the repo file, repoint the symlink to the venv's generated entry point (e.g., ~/.venv/bin/hermes), which has the correct venv-specific shebang and isn't git-tracked. Use ln -sf <new-target> <symlink> to update the symlink target.

vamseeachanta/workspace-hub/tree/main/.agents/skills/workspace-hub/learned/fix-symlink-shebang-persistence commit 6b131992e9

Frequently asked questions

npx skillmds@latest add vamseeachanta/fix-symlink-shebang-persistence