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捐贈少量。
捐款不是預期的,但非常感謝。