Keep track of my commonly used dotfiles using the https://github.com/anishathalye/dotbot tool.
git clone https://github.com/peterg17/dotfiles.git./install
Neovim (≥ 0.9 required): The nvim config uses lazy.nvim and vim.keymap, which require a recent Neovim. The system package on Debian/Ubuntu is typically too old — install from snap or GitHub releases instead:
# macOS
brew install neovim
# Linux (snap — easiest)
sudo snap install nvim --classic
# Linux (GitHub release — if snap unavailable)
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim-linux-x86_64.tar.gz
sudo tar -C /opt -xzf nvim-linux-x86_64.tar.gz
sudo ln -sf /opt/nvim-linux-x86_64/bin/nvim /usr/local/bin/nvimGit editor (nvr): The gitconfig uses neovim-remote as the git editor. Install it after neovim:
pip install neovim-remoteWithout nvr, git commit/rebase editor invocations will fail. If you're on a machine where you don't want to install it, set a local override:
git config --global core.editor vimClaude Code:
curl -fsSL https://claude.ai/install.sh | bashInstall these before running ./install — Mason will auto-install LSP servers on first launch of nvim, but they depend on these being present.
Node.js (required for pyright, jsonls):
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
# restart shell, then:
nvm install --ltsPython (required for pyright):
sudo apt install python3 python3-pipPython Jupyter deps (required for molten-nvim notebook support):
sudo apt install pipx
pipx install jupytext
pip install --user pynvim jupyter_client
mkdir -p ~/.local/share/jupyter/runtimeThen on first launch of nvim, run :UpdateRemotePlugins and restart. Start a kernel with :MoltenInit python3.
Key mappings (all prefixed <leader>m):
<leader>mi— init kernel<leader>ml— run current line<leader>mr— re-run cell<leader>mv(visual) — run selection<leader>mo— show output]m/[m— next/prev cell
Cells are delimited by # %% markers in .py files.
Using a virtualenv kernel with Molten:
Register the venv as a named Jupyter kernel (do this once per venv):
source /path/to/venv/bin/activate
pip install ipykernel
python -m ipykernel install --user --name=myenv --display-name "My Env"Then in Neovim: :MoltenInit myenv
List all registered kernels with:
jupyter kernelspec listripgrep (required for Telescope live_grep):
brew install ripgrepfzf (used for branch checkout and shell history search):
# macOS
brew install fzf
# Linux — install from git, not apt (apt version is too old for --zsh support)
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf && ~/.fzf/installGo (required for gopls):
GO_VERSION=$(curl -sL 'https://go.dev/dl/?mode=json' | python3 -c "import sys,json; print(json.load(sys.stdin)[0]['version'])")
curl -LO "https://go.dev/dl/$GO_VERSION.linux-amd64.tar.gz"
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf "$GO_VERSION.linux-amd64.tar.gz"
echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.zshrc
source ~/.zshrcJava (required for jdtls) — use SDKMAN to get the latest OpenJDK:
curl -s "https://get.sdkman.io" | bash
# restart shell, then:
sdk install java
sdk install mavenThese apply in any buffer where an LSP server is active (Go, Python, TypeScript, Java, etc.).
Custom mappings (defined in nvim/lua/plugins/lsp.lua):
| Key | Action |
|---|---|
K |
Hover docs / type info |
<leader>rn |
Rename symbol |
<leader>ca |
Code actions (auto-imports, fixes) |
<leader>cf |
Format file |
[d / ]d |
Prev / next diagnostic |
<leader>cd |
Diagnostic detail float |
Neovim 0.11 built-in defaults:
| Key | Action |
|---|---|
gd |
Go to definition |
gD |
Go to declaration |
gi |
Go to implementation |
gr |
Find references |
<C-k> |
Signature help (insert mode) |
<C-y> |
Accept completion suggestion |
<C-n> / <C-p> |
Next / prev completion suggestion |
<C-e> |
Dismiss completion menu |
To forward ANTHROPIC_API_KEY from your Mac over SSH (so nvim/avante works remotely without storing the key on the remote):
- Add to the remote's
/etc/ssh/sshd_config:AcceptEnv ANTHROPIC_API_KEY - Reload sshd:
sudo systemctl reload sshd
The Mac side is already configured — ~/.ssh/config.d/00-generic sends the key automatically on every SSH connection.
To get "Claude requires your input" notifications forwarded to iTerm2 on your Mac via the SSH session:
- Merge the remote Claude settings (safe to re-run, won't clobber existing settings):
~/dotfiles/claude/setup-remote.sh - In iTerm2 on your Mac: Settings → Profiles → Terminal → enable "Send notification on bell"
Notifications travel over the existing SSH session as an iTerm2 escape sequence — no tunnels or third-party services needed.
Skills are split by runtime so Claude Code and pi can coexist without loading each other's tool-specific workflows:
- Shared Agent Skills:
agents/skills/<name>/SKILL.md- installed into
~/.agents/skills/<name>for Agent Skills compatible tools - installed into
~/.claude/skills/<name>for Claude Code - discovered by pi from
~/.agents/skillsby default, so shared skills are not also linked into~/.pi/agent/skills
- installed into
- Claude-only skills:
claude/skills/<name>/SKILL.md, installed only into~/.claude/skills/<name> - Pi-only skills:
pi/skills/<name>/SKILL.md, installed only into~/.pi/agent/skills/<name>
The installer links skills per-name rather than replacing whole skill directories, so plugin-shipped or host-only skills with other names are left alone. Keep skill names unique across the three source trees; if a workflow needs different tool APIs in Claude and pi, give each runtime-specific version a distinct name.
Pi settings intentionally do not import ~/.claude/skills; any shared skill should live in agents/skills instead. The pi settings merge removes the old dotfiles-managed ~/.claude/skills import to prevent duplicate or Claude-only skills from appearing in pi.
Currently shipped:
- Shared: none.
- Claude-only:
parallel-jira-tickets— spawn a Claude team to tackle multiple Jira tickets in parallel (one implementer per ticket in its own worktree, plus shared reviewer + tester, plus an hourly PR-comment polling cron).single-jira-ticket-team— single-ticket counterpart toparallel-jira-tickets. Spawns a backgrounded team (one implementer in a worktree + shared reviewer + tester + PR-comment cron) for one non-trivial Jira ticket while the user keeps working in the main session.obsidian-ticket-claude-team— Claude counterpart to the piobsidian-ticket-teamskill (distinct name to avoid the cross-runtime collision flagged by AGENTS.md). Spawns a background team for implementation work described by an Obsidian Markdown ticket note (or 2-5 related notes); team lead updates the note's frontmatter and## Work Logas the implementer, reviewer, and tester progress.obsidian-ticket-create— write a new Obsidian ticket note in the same schema as pi'sobsidian_ticket_createtool (frontmatter + Problem/Acceptance/Context/Agent Instructions/Work Log/PR sections). Notes round-trip with pi'sobsidian-ticketsextension.
- Pi-only: see
pi/README.mdforjira-ticket-workflow,jira-team-ticket, andobsidian-ticket-team.
To add a portable shared skill, put it under agents/skills/<name>/SKILL.md and add matching ~/.agents/skills/<name> and ~/.claude/skills/<name> links to install.conf.yaml. To add a runtime-specific skill, use claude/skills or pi/skills and install it only into that runtime's native skill directory.
The Obsidian inbox cleanup workflow is intentionally vault-local, not dotfiles-managed, because it depends on the private notes vault layout and AGENTS.md rules.
Source of truth: the notes vault's local .pi/ directory:
- Skill:
.pi/skills/obsidian-inbox-cleanup/SKILL.md - Runner:
.pi/scripts/process-index.sh - LaunchAgent template:
.pi/launchd/com.peterg17.obsidian-index-cleanup.plist - Setup docs:
.pi/README.md
Do not symlink this skill into ~/.agents/skills, ~/.claude/skills, or ~/.pi/agent/skills; doing so creates duplicate skill discovery/collision warnings. Install or refresh the background job from the notes vault README instead.