init¶
Initialize a dot-man repository with interactive setup wizard.
Usage¶
dot-man init
dot-man init --import # Import from existing git repo
dot-man init --yes # Skip prompts, use defaults
What It Does¶
- Creates
~/.config/dot-man/repo/with a git repository - Runs an interactive wizard to detect and add common dotfiles
- Generates a
dot-man.tomlconfiguration file - Creates initial commit
Interactive Wizard¶
The wizard auto-detects common dotfile locations:
| Category | Locations Checked |
|---|---|
| Shell | .bashrc, .zshrc, .config/fish/config.fish |
| Editor | .config/nvim/, .vimrc, .emacs.d/ |
| Terminal | .config/kitty/, .config/alacritty/ |
| Git | .gitconfig |
| SSH | .ssh/config |
| Window Manager | .config/hypr/, .config/sway/ |
Options¶
| Flag | Description |
|---|---|
--import |
Import from an existing git repository |
--yes |
Accept all defaults without prompting |
--verbose |
Show detailed output |
Examples¶
# Basic initialization
dot-man init
# Import existing dotfiles repo
cd ~/my-dotfiles
dot-man init --import
# Non-interactive setup
dot-man init --yes
Post-Init¶
After initialization, add more files: