我正在设置一些dotfile配置。我正在使用 DotBot 实现的自动化。
这是我在.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这是我的install.conf.yaml,用于DotBot配置
- defaults:
link:
relink: true
- clean: ['~']
- link:
~/.dotfiles: ''
~/.zshrc: zshrc
- shell:
- [git submodule update --init --recursive, Installing submodules]当我运行./安装在我的.dotfile文件夹中,以启动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我的目标是在git存储库中设置带有anitgen & dotbot的zsh作为子模块,我可以跟踪它。dotbot应该创建symlkinks,这样我就可以修改我的Dot文件,并使它们与github保持同步,并轻松地将它们安装在新机器上。
提前感谢!
发布于 2016-03-20 08:34:43
这是你的问题:
Nonexistent target for ~/.zshrc : /Users/anders.kitson/.dotfiles/zshrc在您的文件夹中有以下文件:zshrch
# the file ends with extra [h]
zshrch在链接中,您有:
- link:
~/.dotfiles: ''
~/.zshrc: zshrc修复其中的任何一个,它将工作,因为您是指一个不存在的文件。
https://stackoverflow.com/questions/35896612
复制相似问题