fixed some commands related to yadm

This commit is contained in:
Phuntsok Drak-pa 2019-10-13 11:51:12 +02:00
parent 7a2dae8805
commit ea855cf305

View File

@ -223,14 +223,20 @@
#+END_SRC
- From [[https://github.com/phundrak/dotfiles][Github]]:
#+BEGIN_SRC sh :dir ~ :exports code
yadm clone https://gitlab.com/phundrak/dotfiles.git
yadm clone https://github.com/phundrak/dotfiles.git
#+END_SRC
To decrypt the encrypted files, run the following command:
#+BEGIN_SRC sh :dir ~ :exports code
yadm decrypt
#+END_SRC
It will ask the passphrase.
*** Update the remotes
Now, lets make sure we have the correct remotes set up for the dotfiles.
#+BEGIN_SRC fish :exports code :dir ~/dotfiles
yadm remote set-url origin "https://labs.phundrak.fr/phundrak/dotfiles.git"
yadm remote add-url github "https://github.com/phundrak/dotfiles.git"
#+BEGIN_SRC sh :exports code :dir ~/dotfiles
yadm remote set-url origin https://labs.phundrak.fr/phundrak/dotfiles.git
yadm remote add github https://github.com/phundrak/dotfiles.git
#+END_SRC
You can swap the two links if you feel more comfortable with Github as the
=origin= remote, just rename the =github= remote to something like