Compare commits
5 commits
75d4c9ab03
...
d7573a3cbd
| Author | SHA1 | Date | |
|---|---|---|---|
| d7573a3cbd | |||
| 9ebfc6fc93 | |||
| 45a34c65c7 | |||
|
a84e3d087c |
|||
|
7f1f8e4d3e |
2 changed files with 41 additions and 3 deletions
|
|
@ -90,9 +90,7 @@ require("lazy").setup({
|
||||||
{ "wellle/targets.vim" },
|
{ "wellle/targets.vim" },
|
||||||
{
|
{
|
||||||
"junegunn/fzf",
|
"junegunn/fzf",
|
||||||
build = function()
|
build = "./install --bin",
|
||||||
vim.fn["fzf#install"]()
|
|
||||||
end,
|
|
||||||
},
|
},
|
||||||
{ "junegunn/fzf.vim" },
|
{ "junegunn/fzf.vim" },
|
||||||
{ "jremmen/vim-ripgrep" },
|
{ "jremmen/vim-ripgrep" },
|
||||||
|
|
|
||||||
40
install-interface-design.sh
Executable file
40
install-interface-design.sh
Executable file
|
|
@ -0,0 +1,40 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
REPO="https://github.com/Dammyjay93/interface-design.git"
|
||||||
|
SKILL_DIR="${HOME}/.config/opencode/skills/interface-design"
|
||||||
|
CMD_DIR="${HOME}/.config/opencode/commands"
|
||||||
|
TMP_DIR=$(mktemp -d)
|
||||||
|
|
||||||
|
cleanup() { rm -rf "$TMP_DIR"; }
|
||||||
|
trap cleanup EXIT
|
||||||
|
|
||||||
|
echo "Installing interface-design skill for opencode..."
|
||||||
|
|
||||||
|
# Clone latest
|
||||||
|
git clone --depth 1 --quiet "$REPO" "$TMP_DIR" 2>/dev/null || {
|
||||||
|
echo "Error: Failed to clone $REPO" >&2
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
# Create directories
|
||||||
|
mkdir -p "$SKILL_DIR/references" "$SKILL_DIR/reference/examples" "$CMD_DIR"
|
||||||
|
|
||||||
|
# Install skill files
|
||||||
|
cp "$TMP_DIR/.claude/skills/interface-design/SKILL.md" "$SKILL_DIR/"
|
||||||
|
cp "$TMP_DIR/.claude/skills/interface-design/references/"*.md "$SKILL_DIR/references/"
|
||||||
|
cp "$TMP_DIR/reference/system-template.md" "$SKILL_DIR/reference/"
|
||||||
|
cp "$TMP_DIR/reference/examples/"*.md "$SKILL_DIR/reference/examples/"
|
||||||
|
|
||||||
|
# Install commands, fixing the relative path to skill
|
||||||
|
for cmd in "$TMP_DIR/.claude/commands/"*.md; do
|
||||||
|
filename=$(basename "$cmd")
|
||||||
|
sed 's|\.\./skills/interface-design/SKILL\.md|~/.config/opencode/skills/interface-design/SKILL.md|g' \
|
||||||
|
"$cmd" > "$CMD_DIR/$filename"
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "Done. Installed to:"
|
||||||
|
echo " Skill: $SKILL_DIR/"
|
||||||
|
echo " Commands: $CMD_DIR/"
|
||||||
|
echo ""
|
||||||
|
echo "Restart opencode to pick up changes."
|
||||||
Loading…
Add table
Add a link
Reference in a new issue