Dotter é um gerente do DotFile e templater.
Dotfiles são arquivos de configuração que geralmente vivem no diretório doméstico e começam com um ponto. Muitas vezes, é desejável ter um backup de todas as configurações do seu sistema, e é por isso que muitos usuários têm seus escaleiros economizados em um repositório Git e depois simplificá -los em seus locais de destino usando ln -s .
No entanto, existem vários problemas com a abordagem dos Barebones:
O Dotter pretende resolver todos esses problemas, fornecendo uma configuração flexível e modelos automáticos ou símbolos para os locais de destino.
Dotter está disponível no Homebrew usando brew install dotter
Os pacotes AUR a seguir estão disponíveis:
Todos esses são mantidos por Orhun - enorme agradecê -lo!
Dotter está disponível no SCOOP. Execute scoop install dotter para instalar a versão mais recente.
Faça o download do binário da sua plataforma da versão mais recente e, em seguida, coloque -o no seu $PATH ou no seu repositório DOTFile (então você o executaria com ./dotter ). Como alternativa, o Dotter está no Crates.io; portanto, se você tiver o Rustup instalado, execute cargo install dotter .
Confira o wiki para obter mais informações. Entre outras coisas, explica como configurar e configurar o Dotter, além de fornecer informações sobre como funciona o modelo e a implantação.
Agora que você configurou todas as seções de arquivos globais e locais, você pode simplesmente executar dotter no seu repositório.
Todos os arquivos serão implantados em seus locais de destino.
Confira dotter -h para obter os sinalizadores da linha de comando que o Dotter suporta:
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
As contribuições para o Dotter são bem -vindas, seja na forma de uma solicitação de tração ou um problema (para reposições de bugs, solicitações de recursos ou outros comentários úteis)
Como o que eu faço e quero me incentivar a continuar?
Você pode doar uma pequena quantia via PayPal.
As doações não são esperadas, mas muito apreciadas.