Personal configuration files for shell, vim, git, and development tools.
Clone the repository to your home directory:
git clone https://github.com/ccronca/dotfiles.git ~/dotfiles
cd ~/dotfilesRun the installation script:
./makesymlinks.shThis script will:
- Back up existing dotfiles to
~/dotfiles_old/ - Create symlinks from your home directory to the dotfiles repository
- Set up vim directories (backups, swaps, undo)
- Install and update vim plugins (CtrlP, Tagbar)
- Configure Claude Code settings (symlinks config files while preserving runtime data)
- Configure Gemini settings (symlinks config files)
- Configure OpenCode settings (symlinks config files and commands)
- Shell configs: bashrc, zshrc, aliases, bash_profile, bash_logout
- Git: gitconfig, gitconfig-github, gitignore — the default git identity is the GitHub one;
includeIfpicksgitconfig-githubfor~/repositories/github/and a work config (kept in a private repo) for~/repositories/gitlab/ - Vim: vimrc, ctags configuration
- Tmux: tmux.conf
- Claude Code: settings, commands, skills, agents, hooks
- OpenCode: settings, commands, agent instructions
- MCP Servers: User-level MCP configuration (mcp.json → ~/.mcp.json) for Obsidian vaults
The Claude configuration is handled separately to preserve your local runtime data:
- Symlinked files: CLAUDE.md, settings.json, statusline-command.sh, .gitignore
- Symlinked directories: agents/, commands/, hooks/, skills/
- Local files preserved: CLAUDE.local.md, history.jsonl, debug/, file-history/, session-env/, plugins/ (runtime state, gitignored)
To manually update Claude configuration only:
./setup_claude_config.shThe OpenCode configuration is handled by setup_opencode_config.sh:
- Symlinked files: opencode.jsonc, dcp.jsonc, AGENTS.md
- Symlinked directories: agents/, skills/
- Commands and plugins:
commands/andplugins/in~/.config/opencodeare real directories of per-file symlinks, so entries from a private dotfiles repo can live alongside the public ones
The public config intentionally does not pin models or providers — model selection stays in your private, machine-local config.
To manually update OpenCode configuration only:
./setup_opencode_config.shopencode/plugins/rtk.ts rewrites common shell commands (git, ls, grep, test runners) through rtk to cut token usage. setup_opencode_config.sh installs the rtk binary automatically if it is missing.
Manual install:
curl -fsSL https://raw.githubusercontent.com/rtk-ai/rtk/refs/heads/master/install.sh | sh
# or: brew install rtksetup_systemd_config.sh symlinks units from systemd/user/ into ~/.config/systemd/user/, helper scripts into ~/.local/bin/, runs systemctl --user daemon-reload and enables the units. Real files already present in ~/.config/systemd/user/ are left untouched.
dotfiles-secrets.service decrypts ~/.config/creds.d/*.cred (TPM2-encrypted via systemd-creds) into a tmpfs cache (${XDG_RUNTIME_DIR}/dotfiles-secrets.env) at login; zshrc/bashrc source that cache and delegate rebuilds back to the service. File-based credentials work too: ~/.config/creds.d/files/*.cred are decrypted to ${XDG_RUNTIME_DIR}/dotfiles-secrets-files/ — used for the AWS credentials INI, referenced by AWS_SHARED_CREDENTIALS_FILE in ~/.env.
Add a secret:
printf '%s' 'the-token' | systemd-creds encrypt --user - ~/.config/creds.d/NEWVAR.cred
systemctl --user restart dotfiles-secrets.service # or just open a new shellrotate-gitlab-token.timer rotates the GitLab personal access token every 5 days (re-encrypting it into creds.d and refreshing the cache). On failure the script sends a critical desktop notification and the unit retries every 30 minutes, bounded to 8 attempts per 6h window.
The Gemini configuration is handled separately:
- Symlinked files: settings.json
To manually update Gemini configuration only:
./setup_gemini_config.shThe repository includes user-level MCP configuration in mcp.json (symlinked to ~/.mcp.json) for Obsidian vault integration.
Note: Due to a bug in mcp-obsidian (see PR #89), only one vault can be configured at a time.
To use the MCP server:
-
Copy the example environment file:
cp .env.example .env
-
Edit
.envand add your Obsidian API key:OBSIDIAN_MYJOURNAL_API_KEY=your_actual_key
-
Source the environment variables before running Claude Code:
source .env
The MCP server will be available when Claude Code runs.
The repository includes a /calendar-journal command for generating meeting summaries from Google Calendar.
Install and configure gcalcli following the official documentation.
The first run will prompt for OAuth authorization to access your Google Calendar.
Generate meeting summaries and save them to your Obsidian vault:
# Today's meetings
/calendar-journal
# This week's meetings
/calendar-journal week
# Specific date
/calendar-journal 2025-11-25The command will:
- Fetch events from Google Calendar using gcalcli
- Analyze meeting patterns and time distribution
- Generate a summary with statistics and observations
- Save to
Journal/Calendar/YYYY-MM-DD.mdin Obsidian vault - Add appropriate tags for searchability
The repository includes a prompt rewriting feature that improves your prompts for better clarity and grammar using the ai-rewriter service.
-
Clone and set up the ai-rewriter service:
git clone https://github.com/ccronca/ai-rewriter.git cd ai-rewriter # Follow the setup instructions in the repository
-
Start the ai-rewriter service (default port: 8787):
# The service should be running on http://127.0.0.1:8787
Two ways to trigger prompt rewriting:
-
Using
#rwprefix - Automatic hook-based rewriting:#rw how I can make this project better? -
Using
/rwcommand - Explicit slash command:/rw how I can make this project better?
Both methods will:
- Send your prompt to the ai-rewriter service
- Show you the original and improved versions
- Highlight key improvements (grammar, clarity, structure)
- Respond to the improved prompt
This feature helps you learn English by showing concrete examples of improvements.
If you prefer to set up components individually, you can run scripts separately or manually symlink specific files.