Dotter เป็นผู้จัดการ DotFile และ Templater
dotfiles เป็นไฟล์ การกำหนดค่า ที่มักจะอยู่ในโฮมไดเร็กตอรี่และเริ่มต้นด้วย DOT บ่อยครั้งที่เป็นที่พึงปรารถนาที่จะมีการสำรองข้อมูลการกำหนดค่าทั้งหมดในระบบของคุณซึ่งเป็นสาเหตุที่ผู้ใช้จำนวนมากมีการบันทึก dotfiles ของพวกเขาในที่เก็บ Git จากนั้น symlinking พวกเขาไปยังตำแหน่งเป้าหมายโดยใช้ ln -s
อย่างไรก็ตามมีหลายประเด็นเกี่ยวกับวิธีการที่เปลือยเปล่า:
Dotter มีจุดมุ่งหมายเพื่อแก้ปัญหาเหล่านั้นทั้งหมดโดยการกำหนดค่าที่ยืดหยุ่นและการกำหนดเทมเพลตอัตโนมัติหรือการเชื่อมโยงไปยังตำแหน่งเป้าหมาย
Dotter มีให้บริการบน Homebrew โดยใช้ brew install dotter
มีแพ็คเกจ AUR ต่อไปนี้:
ทั้งหมดนี้ได้รับการดูแลโดย Orhun - ขอบคุณมากสำหรับเขา!
Dotter มีให้บริการบน Scoop Run scoop install dotter เพื่อติดตั้งรีลีสล่าสุด
ดาวน์โหลดไบนารีสำหรับแพลตฟอร์มของคุณจากรุ่นล่าสุดจากนั้นใส่ลงใน $PATH ของคุณหรือในที่เก็บ dotfile ของคุณ (จากนั้นคุณจะเรียกใช้กับ ./dotter ) อีกทางเลือกหนึ่งคือ Dotter อยู่ใน Crates.io ดังนั้นหากคุณติดตั้ง Rustup ให้ Run cargo install dotter
ตรวจสอบ Wiki สำหรับข้อมูลเพิ่มเติม เหนือสิ่งอื่นใดมันอธิบายวิธีการตั้งค่าและกำหนดค่า dotter รวมถึงให้ข้อมูลเชิงลึกเกี่ยวกับวิธีการทำงานของเทมเพลตและการปรับใช้
ตอนนี้คุณได้กำหนดค่าส่วนไฟล์ทั่วโลกและท้องถิ่นทั้งหมดแล้วคุณสามารถเรียกใช้ dotter จากภายในพื้นที่เก็บข้อมูลของคุณ
ไฟล์ทั้งหมดจะถูกปรับใช้กับตำแหน่งเป้าหมาย
ตรวจสอบ dotter -h สำหรับธงบรรทัดคำสั่งที่ Dotter รองรับ:
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
ยินดีต้อนรับการมีส่วนร่วมใน dotter ไม่ว่าจะอยู่ในรูปแบบของคำขอดึงหรือปัญหา (สำหรับ repots ข้อผิดพลาดคำขอคุณสมบัติหรือความคิดเห็นที่เป็นประโยชน์อื่น ๆ )
ชอบสิ่งที่ฉันทำและต้องการกระตุ้นให้ฉันดำเนินการต่อ?
คุณสามารถบริจาคจำนวนเล็กน้อยผ่าน PayPal
ไม่คาดหวังการบริจาค แต่ชื่นชมอย่างมาก