Updated bootstrap after submodules update

This commit is contained in:
2020-02-16 23:41:28 +01:00
parent c29b9a1131
commit 3e841fa0b2
2 changed files with 118 additions and 13 deletions

View File

@@ -5,7 +5,7 @@
#+HTML_HEAD_EXTRA: <meta name="description" content="Phundrak-flavored Arch Linux" />
#+HTML_HEAD_EXTRA: <meta property="og:title" content="Phundrak-flavored Arch Linux" />
#+HTML_HEAD_EXTRA: <meta property="og:description" content="How to install a Phundrak-flavored Arch Linux" />
#+PROPERTY: header-args :exports code
#+PROPERTY: header-args :exports code :comments link
* Table of Contents :TOC_4_gh:noexport:
:PROPERTIES:
@@ -133,7 +133,7 @@
* Execute bootstrap
:PROPERTIES:
:CUSTOM_ID: h-c13d132f-9e69-4bb0-838b-29c7c5611f11
:HEADER-ARGS: :tangle ~/.config/yadm/bootstrap
:HEADER-ARGS: :tangle ~/.config/yadm/bootstrap :comments link
:END:
=yadm= comes with a very handy feature: its bootstrap script. We can execute
it by running the following command:
@@ -389,23 +389,24 @@
:CUSTOM_ID: h-bd5a92c4-1a4f-49ea-a447-050a4ff0301c
:END:
Now, the first thing we want to do with Emacs is install its Spacemacs
distribution. Well clone its =develop= branch into =~/.emacs.d=. We need to
do this prior to our dotfiles cloning because of some submodules that are
cloned within our =~/.emacs.d= directory, and git wont let us clone
Spacemacs in an already existing and non-empty directory. To make sure it
isnt one, lets delete any potentially existing =~/.emacs.d= directory:
distribution. Well clone its =develop= branch into =~/.config/emacs=. We
need to do this prior to our dotfiles cloning because of some submodules
that are cloned within our =~/.config/emacs= directory, and git wont let us
clone Spacemacs in an already existing and non-empty directory. To make sure
it isnt one, lets delete any potentially existing =~/.config/emacs=
directory:
#+BEGIN_SRC fish
printf "\n# Installing Spacemacs ########################################################\n\n"
rm -rf ~/.emacs.d
rm -rf ~/.config/emacs
#+END_SRC
Now we can clone Spacemacs:
#+BEGIN_SRC fish
git clone --single-branch --branch develop https://github.com/syl20bnr/spacemacs ~/.emacs.d
git clone --single-branch --branch develop https://github.com/syl20bnr/spacemacs ~/.config/emacs
#+END_SRC
And we can restore what might have been deleted in our =~/.emacs.d/private=
directory:
#+BEGIN_SRC fish
yadm checkout -- ~/.emacs.d/private/
yadm checkout -- ~/.config/emacs/private/
#+END_SRC
** Set up dotfiles