summaryrefslogtreecommitdiff
path: root/tests/opencode/test-plugin-loading.sh
diff options
context:
space:
mode:
authororibi <oribarilan@gmail.com>2026-01-19 23:54:50 +0200
committerJesse Vincent <jesse@fsck.com>2026-01-22 12:47:18 -0800
commit06dcd150adc8125fe9c6b5a1adcb30e2b3dc3a61 (patch)
tree3c001d424447c23439a86cb391ab05b41a8c4284 /tests/opencode/test-plugin-loading.sh
parent6354d817ebbb0806f4766c38bce003c75cf37e14 (diff)
fix: respect OPENCODE_CONFIG_DIR for personal skills lookup (#297)
* fix: respect OPENCODE_CONFIG_DIR for personal skills lookup The plugin was hardcoded to look for personal skills in ~/.config/opencode/skills, ignoring users who set OPENCODE_CONFIG_DIR to a custom path (e.g., for dotfiles management). Now uses OPENCODE_CONFIG_DIR if set, falling back to the default path. * fix: update help text to use dynamic paths Use configDir and personalSkillsDir variables in help text so paths are accurate when OPENCODE_CONFIG_DIR is set. * fix: normalize OPENCODE_CONFIG_DIR before use Handle edge cases where the env var might be: - Empty or whitespace-only - Using ~ for home directory (common in .env files) - A relative path Now trims, expands ~, and resolves to absolute path.
Diffstat (limited to 'tests/opencode/test-plugin-loading.sh')
0 files changed, 0 insertions, 0 deletions