设置DotBot&抗原

时间:2016-03-09 16:03:45

标签: git zsh zshrc dotfiles

我正在设置一些dotfile配置。我正在使用DotBot来自动symlinks

以下是我的.dotfile文件夹

上的文件列表
.git            antigen         install         zshrch
.gitmodules     dotbot          install.conf.yaml

这是设置抗原的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

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

- defaults:
    link:
      relink: true

- clean: ['~']

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

- shell:
  - [git submodule update --init --recursive, Installing submodules]

我在.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

我的目标是使用anitgen和amp;来设置zsh。 dotbot作为我可以跟踪的git存储库中的子模块。 dotbot应该创建symlkinks,这样我就可以修改我的Dot Files并使它们与github保持同步,并轻松地将它们安装到新机器上。

提前致谢!

1 个答案:

答案 0 :(得分:3)

这是你的问题:

Nonexistent target for ~/.zshrc : /Users/anders.kitson/.dotfiles/zshrc

在您的文件夹中,您有以下文件: zshrc [h]

# the file ends with extra [h]
zshrch

在链接中你有:

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

修复其中任何一个并且它会起作用,因为你指的是一个未存在的文件。