| Crates.io | dotzilla-cli |
| lib.rs | dotzilla-cli |
| version | 0.2.5 |
| created_at | 2025-04-29 02:12:29.516238+00 |
| updated_at | 2025-08-24 03:40:27.027996+00 |
| description | A CLI tool to manage dotfiles with symbolic linking and staging capabilities |
| homepage | |
| repository | https://github.com/snakeice/dotzilla |
| max_upload_size | |
| id | 1652926 |
| size | 127,969 |
A powerful, Git-inspired dotfiles manager with symbolic linking capabilities.
Dotzilla is a Terminal User Interface (TUI) tool designed to help you manage your dotfiles with a workflow inspired by Git. It launches an interactive interface by default, and also provides command-line options for scripting and automation. It allows you to track, stage, and link dotfiles between a central repository and their original locations on your system.
# Clone the repository
git clone https://github.com/snakeice/dotzilla.git
cd dotzilla
# Build the project
cargo build --release
# The binary will be available at target/release/dotzilla
# Optionally, move it to a directory in your PATH
cp target/release/dotzilla ~/.local/bin/
cargo install dotzilla-cli
The TUI launches by default when you run dotzilla without any commands:
dotzilla
You can also explicitly launch it with:
dotzilla tui
The TUI provides a visual interface for managing your dotfiles with the following features:
Keyboard Shortcuts:
↑/k or ↓/j - Navigate up/downTab/Shift+Tab - Switch between tabsa - Add a new dotfiled - Remove selected dotfiles - Stage/unstage selected dotfilel - Link all staged dotfilesu - Unlink all dotfilesc - Commit all staged dotfilesr - Refresh dataq - QuitCreate a new dotfiles repository:
dotzilla init ~/dotfiles
Add a dotfile to tracking:
dotzilla add ~/.bashrc
This copies the file to your dotfiles repository and begins tracking it.
Remove a dotfile from tracking:
dotzilla remove .bashrc
This removes the dotfile from tracking and by default will ask for confirmation before deleting the file from the repository. Use the --keep flag to only remove from tracking without deleting the file:
dotzilla remove .bashrc --keep
Stage a dotfile for linking:
dotzilla stage .bashrc
Remove a file from the staging area:
dotzilla unstage .bashrc
Link all staged dotfiles to their original locations:
dotzilla link
This creates symbolic links from your dotfiles repository to the original locations.
Check the status of your dotfiles:
dotzilla status
List all tracked dotfiles:
dotzilla list
Compare a tracked dotfile with its system original:
# Basic diff
dotzilla diff .bashrc
# Word-by-word diff
dotzilla diff .bashrc --word
# Using an external diff tool
dotzilla diff .bashrc --tool vimdiff
dotzilla diff .bashrc --tool meld
dotzilla diff .bashrc --tool vscode
# Directory diff
dotzilla diff .config
| Command | Description |
|---|---|
tui |
Launch the Terminal User Interface |
init [path] |
Initialize a new dotfiles repository |
add <path> |
Add a dotfile to tracking |
remove <name> [--keep] |
Remove a dotfile from tracking |
stage <name> |
Stage a dotfile for linking |
unstage <name> |
Unstage a dotfile |
link |
Link all staged dotfiles to their target locations |
status |
Show the status of tracked and staged dotfiles |
list |
List all tracked dotfiles |
diff <name> [--word] [--tool <tool>] |
Show differences between tracked and local dotfiles |
completion <shell> |
Generate shell completion scripts |
Initialize your dotfiles repository:
dotzilla init ~/dotfiles
Add some dotfiles:
dotzilla add ~/.bashrc
dotzilla add ~/.vimrc
dotzilla add ~/.config/nvim
Check their status:
dotzilla status
Stage files you want to link:
dotzilla stage .bashrc
dotzilla stage .vimrc
Create symlinks:
dotzilla link
Later, if you make changes to files in their original locations, compare them:
dotzilla diff .bashrc
Add the updated file to incorporate changes:
dotzilla add ~/.bashrc
If you no longer need to track a dotfile, remove it:
# Remove from tracking and delete the file (with confirmation)
dotzilla remove .vimrc
# Or just remove from tracking, keeping the file
dotzilla remove .vimrc --keep
Alternatively, you can use the interactive Terminal User Interface for a more visual experience. The TUI is the default interface and launches automatically:
Launch the TUI (default behavior):
dotzilla
Or explicitly:
dotzilla tui
Use the keyboard shortcuts to navigate and manage your dotfiles:
Tabasl? or go to the Help tab for a complete list of shortcutsDotzilla supports shell completion for various shells, making it easier to use the command-line interface.
Generate shell completion scripts:
# For Bash
dotzilla completion bash > ~/.local/share/bash-completion/completions/dotzilla
# For Zsh
dotzilla completion zsh > ~/.zfunc/_dotzilla
# For Fish
dotzilla completion fish > ~/.config/fish/completions/dotzilla.fish
Make sure the respective directories exist and are in your shell's completion path.
See the CHANGELOG file for a detailed history of changes.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.