Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,3 @@ repos:
- id: shellcheck
files: ^(configs/(aliases|bash_profile|zprofile|zshrc)|scripts/.*\.sh)$
types: [file]
- repo: local
hooks:
- id: codex-doctor
name: codex doctor
entry: codex doctor --summary --ascii
language: system
pass_filenames: false
files: ^configs/codex/config\.toml$
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ cd ~/dotfiles
This will:

- Symlink config files to your home directory
- Symlink shared agent instructions and config to Codex and Claude locations
- Symlink shared agent instructions and config to Claude and agent locations
- Install packages via Homebrew (macOS) or apt (Debian)
- Install oh-my-zsh
- Configure VSCode vim key repeat (macOS)
Expand All @@ -30,7 +30,6 @@ scripts/
configs/ # Dotfiles and tool configs
AGENTS.md # Shared global agent instructions
agents/ # Shared user-level agent config
codex/ # Codex config
Brewfile # Common Homebrew packages
Brewfile.work # Work-specific packages
Brewfile.personal # Personal-specific packages
Expand Down
1 change: 0 additions & 1 deletion configs/codex/AGENTS.md

This file was deleted.

10 changes: 0 additions & 10 deletions configs/codex/config.toml

This file was deleted.

30 changes: 0 additions & 30 deletions scripts/link-dotfiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,29 +28,6 @@ link_file() {
echo " linked: $dest -> $src"
}

migrate_directory_contents() {
local src="$1"
local dest="$2"

if [ ! -d "$dest" ] || [ -L "$dest" ]; then
return
fi

echo " migrating: $dest contents -> $src"
for path in "$dest"/* "$dest"/.[!.]* "$dest"/..?*; do
[ -e "$path" ] || continue
local name
name="$(basename "$path")"

if [ -e "$src/$name" ] || [ -L "$src/$name" ]; then
echo " keeping managed Codex entry: $name"
continue
fi

mv "$path" "$src/$name"
done
}

echo "Linking dotfiles ..."

link_file "$CONFIGS_DIR/zshrc" "$HOME/.zshrc"
Expand All @@ -66,13 +43,6 @@ link_file "$CONFIGS_DIR/gemrc" "$HOME/.gemrc"
link_file "$CONFIGS_DIR/tmux.conf" "$HOME/.tmux.conf"
link_file "$CONFIGS_DIR/nvim" "$HOME/.config/nvim"

echo "Linking Codex config ..."

CODEX_HOME_DIR="${CODEX_HOME:-$HOME/.codex}"
mkdir -p "$(dirname "$CODEX_HOME_DIR")"
migrate_directory_contents "$CONFIGS_DIR/codex" "$CODEX_HOME_DIR"
link_file "$CONFIGS_DIR/codex" "$CODEX_HOME_DIR"

echo "Linking claude config ..."

# Link the entire claude directory
Expand Down
Loading