Linux command
dotstate 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Initialize
dotstate init [directory]
Add
dotstate add [path/to/file]
Sync
dotstate sync
Track
dotstate commit -m "message"
说明
dotstate is a modern dotfile manager that uses Git for version control while providing a simplified interface for common dotfile operations. It helps users manage configuration files across multiple machines by tracking them in a Git repository. The tool provides commands for initializing a dotfiles repo, adding files to tracking, synchronizing configurations between systems, and handling platform-specific files. It maintains a clean separation between the actual dotfiles in the home directory and the repository.
参数
- -c, --config _FILE_
- Configuration file path
- -d, --dotfiles _DIR_
- Dotfiles repository directory
- -v, --verbose
- Enable verbose output
- --dry-run
- Show what would be done without making changes
- -h, --help
- Display help and exit
- --version
- Display version and exit
FAQ
What is the dotstate command used for?
dotstate is a modern dotfile manager that uses Git for version control while providing a simplified interface for common dotfile operations. It helps users manage configuration files across multiple machines by tracking them in a Git repository. The tool provides commands for initializing a dotfiles repo, adding files to tracking, synchronizing configurations between systems, and handling platform-specific files. It maintains a clean separation between the actual dotfiles in the home directory and the repository.
How do I run a basic dotstate example?
Run `dotstate init [directory]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -c, --config _FILE_ do in dotstate?
Configuration file path