Я встановлюю деякі конфігурації з кодуванням. я використовую 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
Це мій install.conf.yaml для конфігурації DotBot
- defaults:
link:
relink: true
- clean: ["~"]
- link:
~/.dotfiles: ""
~/.zshrc: zshrc
- shell:
- [git submodule update --init --recursive, Installing submodules]
Я отримую помилку під час запуску ./install у моїй папці .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
Моя ціль - налаштувати zsh за допомогою anitgen & dotbot asпідмодули в сховищі git, які я можу відстежувати. dotbot повинен створювати символьні посилання, щоб я міг змінити мої Dot файли і зберігати їх у синхронізації з github і легко встановити їх на новій машині.
Спасибі заздалегідь!
Відповіді:
3 для відповіді № 1Ось ваша проблема:
Nonexistent target for ~/.zshrc : /Users/anders.kitson/.dotfiles/zshrc
У вашій папці є цей файл: zshrc [h]
# the file ends with extra [h]
zshrch
Поки у вас є посилання:
- link:
~/.dotfiles: ""
~/.zshrc: zshrc
виправте будь-який з них, і він буде працювати, оскільки ви маєте на увазі неіснуючий файл.