Agent instructions, skills, SSH host aliases and expansion triggers are worth having identical on every machine one person owns, and belong in none of the shared configuration. They live in user/ now, with a manifest saying where each piece goes and a link-user stage that puts it there. That stage does nothing unless the machine said yes. Somebody who clones Panama to try the desktop keeps their own ~/.claude/CLAUDE.md exactly where it was; the question names the destinations and defaults to no. Anything displaced goes to config/old rather than being deleted. ~/.claude/CLAUDE.md and ~/.codex/AGENTS.md were byte-identical copies of one file, which is the drift this exists to prevent. Also adds the vitals toggles for the battery and Claude usage readouts, which had preferences and no way to reach them.
65 lines
909 B
Markdown
65 lines
909 B
Markdown
---
|
|
name: code-groups
|
|
description: Group multiple code blocks with tabs and automatic icons
|
|
---
|
|
|
|
# Code Groups
|
|
|
|
Group multiple code blocks with tabs and automatic icons.
|
|
|
|
## Requirements
|
|
|
|
Enable Comark syntax in headmatter:
|
|
|
|
```md
|
|
---
|
|
comark: true
|
|
---
|
|
```
|
|
|
|
## Syntax
|
|
|
|
````md
|
|
::code-group
|
|
|
|
```sh [npm]
|
|
npm i @slidev/cli
|
|
```
|
|
|
|
```sh [yarn]
|
|
yarn add @slidev/cli
|
|
```
|
|
|
|
```sh [pnpm]
|
|
pnpm add @slidev/cli
|
|
```
|
|
|
|
::
|
|
````
|
|
|
|
## Title Icon Matching
|
|
|
|
Icons auto-match by title name. Install `@iconify-json/vscode-icons` for built-in icons.
|
|
|
|
Supported: npm, yarn, pnpm, bun, deno, vue, react, typescript, javascript, and many more.
|
|
|
|
## Custom Icons
|
|
|
|
Use `~icon~` syntax in title:
|
|
|
|
````md
|
|
```js [npm ~i-uil:github~]
|
|
console.log('Hello!')
|
|
```
|
|
````
|
|
|
|
Requires:
|
|
1. Install icon collection: `pnpm add @iconify-json/uil`
|
|
2. Add to safelist in `uno.config.ts`:
|
|
|
|
```ts
|
|
export default defineConfig({
|
|
safelist: ['i-uil:github']
|
|
})
|
|
```
|