ubnt-intrepid/dot.rs
关于
Yet another management tool for dotfiles
开发工具实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文dot
dot is a command-line tool for managing dotfiles, written in Rust.
Overview
dot provides a way to organize configuration files in your home directory.
Installation
Precompiled binaries are on our GitHub releases page.
If you want to use the development version, try cargo install to build from source:
$ cargo install --git https://github.com/ubnt-intrepid/dot.git
Example Usage
Clone your dotfiles repository from github and then create home directory symlinks:
$ dot init ubnt-intrepid/dotfiles
Check if all of the links exist and are correct:
$ dot check
<pattern> determines the remote repository's URL of dotfiles.
Pattern types:
(http|https|ssh|git)://[username@]github.com[:port]/path-to-repo.git– URL of dotfiles repository[email protected]:path-to-repo.git– SCP-like pathusername/dotfiles– GitHub user and repositoryusername– GitHub user only (repositorydotfiles, e.g.:https://github.com/myuser/dotfiles)
By default, the repository will be cloned locally to $HOME/.dotfiles. This can be overridden with $DOT_DIR.
For more information, run dot help.
Configuration
$DOT_DIR/.mappings where the symlinks are defined in TOML. For example:
[general]
gitconfig = "~/.gitconfig"
"vim/vimrc" = ["~/.vimrc", "~/.config/nvim/init.vim"]
#...
[windows]
vscode = "$APPDATA/Code/User"
powershell = "$HOME/Documents/WindowsPowerShell"
#...
[linux]
xinitrc = "~/.xinitrc"
Use [general] for symlinks on all platforms. [windows], [linux], [macos] for symlinks on specific platforms.
See my dotfiles for a real example.
License
dot is distributed under the MIT license.
See LICENSE for details.
Similar Projects
- ssh0/dot
written in shell script - rhysd/dotfiles
written in Golang
探索相关项目
加载中…