Files
james.maes b18ccea2f1
KofTwentyTwo/ci-policy: ci / fork-guard (push) Skipped
KofTwentyTwo/ci-policy: ci / gradle-0 (push) Skipped
KofTwentyTwo/ci-policy: ci / manifests-1 (push) Skipped
KofTwentyTwo/ci-policy: ci / rust-2 (push) Skipped
KofTwentyTwo/ci-policy: ci / rust-3 (push) Skipped
KofTwentyTwo/ci-policy: ci / not-enrolled (push) Skipped
KofTwentyTwo/ci-policy: Shared source and config CI / gate (push) Canceled after 0s
KofTwentyTwo/ci-policy: Shared source and config CI / secrets (push) Canceled after 0s
KofTwentyTwo/ci-policy: Shared source and config CI / verify (push) Canceled after 0s
KofTwentyTwo/ci-policy: ci / source-config-4 (push) Canceled after 0s
KofTwentyTwo/ci-policy: ci / ci-result (push) Canceled after 0s
Simplify setup to single command flow
- Modify setup.sh to automatically run setup-local.sh
- Update README to emphasize one-command setup
- Keep manual options available for advanced users
2025-10-10 06:40:44 -05:00

62 lines
1.2 KiB
Markdown

# Dotfiles
Personal configuration files managed with a bare git repository.
## Quick Setup
### One-Command Setup
```bash
# Complete setup: dotfiles + local dev environment (macOS/Ubuntu/Arch)
curl -fsSL https://raw.githubusercontent.com/KofTwentyTwo/dotfiles/main/.dotfiles-scripts/setup.sh | bash
```
### Manual Setup (if needed)
```bash
# Clone and setup dotfiles only
git clone --bare git@github.com:KofTwentyTwo/dotfiles.git ~/.dotfiles
alias dot='git --git-dir=~/.dotfiles/ --work-tree=~'
dot checkout
dot config status.showUntrackedFiles no
# Then run local setup
curl -fsSL https://raw.githubusercontent.com/KofTwentyTwo/dotfiles/main/.dotfiles-scripts/setup-local.sh | bash
```
### Using the Launcher (after dotfiles setup)
```bash
# Setup dotfiles only
./setup dotfiles
# Setup local environment only
./setup local
# Show help
./setup help
```
## Usage
```bash
# Check status
dot status
# Add new file
dot add ~/.newconfig
dot commit -m "Add newconfig"
dot push
# Update existing
dot add ~/.bashrc
dot commit -m "Update bashrc"
dot push
# Pull changes
dot pull
```
## How It Works
- Repository: `~/.dotfiles/` (bare git repo)
- Working tree: `~` (your home directory)
- Use `dot` alias for all git operations
- No `.git` folder in home directory