dotter
v0.13.3
Dotter是Dotfile经理和Templater。
互联网是通常生活在主目录中并从点开始的配置文件。通常,希望对系统上的所有配置进行备份,这就是为什么许多用户将其互联网保存在git存储库中,然后使用ln -s将它们链接到目标位置的原因。
但是,这种B骨方法有几个问题:
Dotter旨在通过为目标位置提供灵活的配置以及自动模板或对称性来解决所有这些问题。
使用brew install dotter
可用以下AUR软件包:
所有这些都由Orhun维护 - 非常感谢他!
DOTTER可在Scoop上使用。运行scoop install dotter以安装最新版本。
从最新版本中下载为您的平台下载二进制文件,然后将其放入您的$PATH或dotfile存储库中(然后您将使用./dotter运行)。另外,点在Crates.io上,因此,如果您安装了Rustup,请运行cargo install dotter 。
查看Wiki以获取更多信息。除其他事项外,它说明了如何设置和配置Dotter,并深入了解模板和部署的工作方式。
现在,您已经配置了所有全局和本地文件部分,您只需从存储库中运行dotter 。
所有文件将部署到其目标位置。
查看dotter -h以获取点数支持的命令行标志:
A dotfile manager and templater written in rust
Usage: dotter [OPTIONS] [COMMAND]
Commands:
deploy Deploy the files to their respective targets. This is the default subcommand
undeploy Delete all deployed files from their target locations. Note that this operates on all files that are currently in cache
init Initialize global.toml with a single package containing all the files in the current directory pointing to a dummy value and a local.toml that selects that package
watch Run continuously, watching the repository for changes and deploying as soon as they happen. Can be ran with `--dry-run`
gen-completions Generate shell completions
help Print this message or the help of the given subcommand(s)
Options:
-g, --global-config <GLOBAL_CONFIG>
Location of the global configuration [default: .dotter/global.toml]
-l, --local-config <LOCAL_CONFIG>
Location of the local configuration [default: .dotter/local.toml]
--cache-file <CACHE_FILE>
Location of cache file [default: .dotter/cache.toml]
--cache-directory <CACHE_DIRECTORY>
Directory to cache into [default: .dotter/cache]
--pre-deploy <PRE_DEPLOY>
Location of optional pre-deploy hook [default: .dotter/pre_deploy.sh]
--post-deploy <POST_DEPLOY>
Location of optional post-deploy hook [default: .dotter/post_deploy.sh]
--pre-undeploy <PRE_UNDEPLOY>
Location of optional pre-undeploy hook [default: .dotter/pre_undeploy.sh]
--post-undeploy <POST_UNDEPLOY>
Location of optional post-undeploy hook [default: .dotter/post_undeploy.sh]
-d, --dry-run
Dry run - don't do anything, only print information. Implies -v at least once
-v, --verbose...
Verbosity level - specify up to 3 times to get more detailed output. Specifying at least once prints the differences between what was before and after Dotter's run
-q, --quiet
Quiet - only print errors
-f, --force
Force - instead of skipping, overwrite target files if their content is unexpected. Overrides --dry-run
-y, --noconfirm
Assume "yes" instead of prompting when removing empty directories
-p, --patch
Take standard input as an additional files/variables patch, added after evaluating `local.toml`. Assumes --noconfirm flag because all of stdin is taken as the patch
--diff-context-lines <DIFF_CONTEXT_LINES>
Amount of lines that are printed before and after a diff hunk [default: 3]
-h, --help
Print help
-V, --version
Print version
无论是以拉动请求的形式还是问题的形式(用于错误的记录,功能请求或其他有用的评论),欢迎对点的贡献)
就像我所做的,想鼓励我继续吗?
您可以通过PayPal捐赠少量。
捐款不是预期的,但非常感谢。