Compare commits

...

2 Commits

2 changed files with 9 additions and 3 deletions

View File

@@ -9,8 +9,9 @@
# Minimal roles for server with development capability
home.roles = {
base.enable = true;
emacs.enable = true;
development.enable = true;
emacs.enable = true;
starship.enable = true;
tmux.enable = true;
};

View File

@@ -85,12 +85,17 @@ in
fi
done
# Copy local skills from this repo
# Copy local skills from this repo (with retry for race conditions with running Claude)
for file in ${./skills}/*.md; do
if [ -f "$file" ]; then
filename=$(basename "$file" .md)
dest="$HOME/.claude/commands/''${filename}.md"
cp "$file" "$dest"
# Remove existing file first, then copy with retry on failure
rm -f "$dest" 2>/dev/null || true
if ! cp "$file" "$dest" 2>/dev/null; then
sleep 0.5
cp "$file" "$dest" || echo "Warning: Failed to copy $filename.md to commands"
fi
fi
done