fix(setup): register root gstack slash alias

This commit is contained in:
Jayesh Betala
2026-05-18 12:14:30 +05:30
committed by Garry Tan
parent 873799c90a
commit 78d30524fd
4 changed files with 78 additions and 0 deletions
+11
View File
@@ -46,6 +46,17 @@ _cleanup_skill_entry() {
fi
}
_link_root_skill_alias() {
local target="$SKILLS_DIR/_gstack-command"
[ -f "$INSTALL_DIR/SKILL.md" ] || return 0
[ -L "$target" ] && rm -f "$target"
mkdir -p "$target"
ln -snf "$INSTALL_DIR/SKILL.md" "$target/SKILL.md"
}
_link_root_skill_alias
# Discover skills (directories with SKILL.md, excluding meta dirs)
SKILL_COUNT=0
for skill_dir in "$INSTALL_DIR"/*/; do