设置 DotBot 和 Antigen

And*_*son 5 git zsh zshrc dotfiles

我正在设置一些点文件配置。我正在使用DotBot进行自动化symlinks

.dotfile这是我的文件夹中的文件列表

.git            antigen         install         zshrch
.gitmodules     dotbot          install.conf.yaml
Run Code Online (Sandbox Code Playgroud)

这是设置抗原的 zshrc 文件

source /antigen/antigen.zsh

# Syntax highlighting bundle.
antigen bundle zsh-users/zsh-syntax-highlighting

# Load the theme.
antigen theme robbyrussell

# Tell antigen that you're done.
antigen apply
Run Code Online (Sandbox Code Playgroud)

这是我的 DotBot 配置的 install.conf.yaml

- defaults:
    link:
      relink: true

- clean: ['~']

- link:
    ~/.dotfiles: ''
    ~/.zshrc: zshrc

- shell:
  - [git submodule update --init --recursive, Installing submodules]
Run Code Online (Sandbox Code Playgroud)

当我在 .dotfile 文件夹中运行 ./install 来启动 DotBot 时,出现错误。

GDC113:.dotfiles anders.kitson$ ./install
Submodule 'lib/pyyaml' (https://github.com/anishathalye/pyyaml) registered for path 'lib/pyyaml'
Cloning into 'lib/pyyaml'...
remote: Counting objects: 1761, done.
remote: Compressing objects: 100% (818/818), done.
remote: Total 1761 (delta 618), reused 1761 (delta 618), pack-reused 0
Receiving objects: 100% (1761/1761), 1.31 MiB | 1.07 MiB/s, done.
Resolving deltas: 100% (618/618), done.
Checking connectivity... done.
Submodule path 'dotbot/lib/pyyaml': checked out 'f30c956c11aa6b5e7827fe5840cc9ed40b938d17'
All targets have been cleaned
~/.dotfiles already exists but is a regular file or directory
Nonexistent target for ~/.zshrc : /Users/anders.kitson/.dotfiles/zshrc
Some links were not successfully set up
Installing submodules [git submodule update --init --recursive]
All commands have been executed

==> Some tasks were not executed successfully
Run Code Online (Sandbox Code Playgroud)

我的目标是将 zsh 与 anitgen 和 dotbot 设置为我可以跟踪的 git 存储库中的子模块。dotbot 应该创建 symlkink,以便我可以修改我的点文件并使它们与 github 同步并轻松将它们安装在新机器上。

提前致谢!

Cod*_*ard 4

这是你的问题:

Nonexistent target for ~/.zshrc : /Users/anders.kitson/.dotfiles/zshrc
Run Code Online (Sandbox Code Playgroud)

在你的文件夹中有这个文件:zshrc[h]

# the file ends with extra [h]
zshrch
Run Code Online (Sandbox Code Playgroud)

在链接中您有:

- link:
    ~/.dotfiles: ''
    ~/.zshrc: zshrc
Run Code Online (Sandbox Code Playgroud)

修复其中任何一个都会起作用,因为您指的是一个不存在的文件。