Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/littleguest/dotfiles
https://github.com/littleguest/dotfiles
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/littleguest/dotfiles
- Owner: LittleGuest
- License: mit
- Created: 2023-08-05T13:49:04.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-29T08:42:31.000Z (2 months ago)
- Last Synced: 2024-10-29T09:56:25.737Z (2 months ago)
- Language: Lua
- Size: 37.1 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dotfiles-bin
dotfiles初始化工具,读取并执行指定配置文件
`config.toml`配置文件 格式如下:
```Toml
pre = [
"sudo pacman -Syu archlinuxcn-keyring archlinuxcn-mirrorlist-git",
'sudo pacman-key --lsign-key "[email protected]"',
]cmds = [
"paru -S git","cargo install trunk",
][[symlinks]]
source = "satty"
target = ".config/satty"[[symlinks]]
source = "rofi"
target = ".config/rofi"
```## 初始化
### archlinuxcn镜像
首先修改`/etc/pacman.conf`文件:
```
[archlinuxcn]
Server = https://repo.archlinuxcn.org/$arch
```### 设置环境变量
设置该仓库的本地地址
```bash
export DOTFILES_PATH=$HOME/code/dotfiles
```拉取:
```bash
git clone https://github.com/LittleGuest/dotfiles.git $DOTFILES_PATH
``````bash
rm -f "$HOME/.bashrc" && ln -s "${DOTFILES_PATH}/.bashrc" "$HOME/.bashrc" && source "$HOME/.bashrc"
```