Dotter es un gerente de DotFile y plantador.
Los DotFiles son archivos de configuración que generalmente viven en el directorio de inicio y comienzan con un punto. Muchas veces, es deseable tener una copia de seguridad de todas las configuraciones en su sistema, por lo que muchos usuarios tienen sus puntos de puntos guardados en un repositorio GIT, luego simulando a sus ubicaciones de destino usando ln -s .
Sin embargo, hay varios problemas con ese enfoque de Barebones:
Dotter tiene como objetivo resolver todos esos problemas proporcionando una configuración flexible y plantillas automáticas o plantillas simuladas a las ubicaciones de destino.
Dotter está disponible en HomeBrew usando brew install dotter
Los siguientes paquetes AUR están disponibles:
Todos ellos son mantenidos por Orhun, ¡enormes gracias a él!
Dotter está disponible en Scoop. Ejecute scoop install dotter para instalar la última versión.
Descargue el binario para su plataforma desde la última versión y luego póngalo en su $PATH o en su repositorio de DotFile (luego lo ejecutaría con ./dotter ). Alternativamente, Dotter está en cajas.io, por lo que si tiene Rustup instalado, ejecute cargo install dotter .
Consulte el wiki para obtener más información. Entre otras cosas, explica cómo configurar y configurar Dotter, así como dar una idea de cómo funciona la plantilla y la implementación.
Ahora que ha configurado todas las secciones de archivos globales y locales, simplemente puede ejecutar dotter desde su repositorio.
Todos los archivos se implementarán en sus ubicaciones de destino.
Echa un vistazo dotter -h para obtener los indicadores de línea de comandos que Dotter admite:
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
Las contribuciones a Dotter son bienvenidas, ya sea en forma de una solicitud de extracción o un problema (para repeticiones de errores, solicitudes de funciones u otros comentarios útiles)
¿Como lo que hago y quiero alentarme a continuar?
Puede donar una pequeña cantidad a través de PayPal.
No se esperan donaciones, pero se aprecian mucho.