Linux command
yadm 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Initialize a new dotfiles repository
yadm init
Clone an existing dotfiles repository
yadm clone [https://github.com/user/dotfiles.git]
Clone and run bootstrap automatically
yadm clone --bootstrap [https://github.com/user/dotfiles.git]
Add a file
yadm add [~/.bashrc]
Commit changes
yadm commit -m "[message]"
Push to remote
yadm push
Pull updates
yadm pull
List managed files
yadm list -a
Encrypt sensitive files
yadm encrypt
Decrypt files
yadm decrypt
List encrypted files
yadm decrypt -l
Show status
yadm status
说明
yadm (Yet Another Dotfiles Manager) manages dotfiles using Git while keeping them in their natural locations in $HOME. Any Git command works with yadm, making it easy to learn for Git users. The repository is stored in ~/.local/share/yadm/repo.git with $HOME as the working tree. Files stay in place; yadm tracks them without requiring symlinks or copying. Key features include alternate files (system-specific configurations based on hostname, OS, or user), templates using Jinja2 or envtpl for dynamic configuration, and encryption for sensitive data using GPG, OpenSSL, transcrypt, or git-crypt. The bootstrap command runs ~/.config/yadm/bootstrap after cloning, enabling automated setup of new machines.
FAQ
What is the yadm command used for?
yadm (Yet Another Dotfiles Manager) manages dotfiles using Git while keeping them in their natural locations in $HOME. Any Git command works with yadm, making it easy to learn for Git users. The repository is stored in ~/.local/share/yadm/repo.git with $HOME as the working tree. Files stay in place; yadm tracks them without requiring symlinks or copying. Key features include alternate files (system-specific configurations based on hostname, OS, or user), templates using Jinja2 or envtpl for dynamic configuration, and encryption for sensitive data using GPG, OpenSSL, transcrypt, or git-crypt. The bootstrap command runs ~/.config/yadm/bootstrap after cloning, enabling automated setup of new machines.
How do I run a basic yadm example?
Run `yadm init` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more yadm examples?
This page includes 12 examples for yadm, plus related commands for nearby Linux tasks.