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,21 +223,27 @@
#+END_SRC #+END_SRC
- From [[https://github.com/phundrak/dotfiles][Github]]: - From [[https://github.com/phundrak/dotfiles][Github]]:
#+BEGIN_SRC sh :dir ~ :exports code #+BEGIN_SRC sh :dir ~ :exports code
yadm clone https://gitlab.com/phundrak/dotfiles.git yadm clone https://github.com/phundrak/dotfiles.git
#+END_SRC #+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 *** Update the remotes
Now, lets make sure we have the correct remotes set up for the dotfiles. Now, lets make sure we have the correct remotes set up for the dotfiles.
#+BEGIN_SRC fish :exports code :dir ~/dotfiles #+BEGIN_SRC sh :exports code :dir ~/dotfiles
yadm remote set-url origin "https://labs.phundrak.fr/phundrak/dotfiles.git" yadm remote set-url origin https://labs.phundrak.fr/phundrak/dotfiles.git
yadm remote add-url github "https://github.com/phundrak/dotfiles.git" yadm remote add github https://github.com/phundrak/dotfiles.git
#+END_SRC #+END_SRC
You can swap the two links if you feel more comfortable with Github as the 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 =origin= remote, just rename the =github= remote to something like
=phundraklabs= or something like that. =phundraklabs= or something like that.
If you have already generated (or copied, but dont do that) your SSH keys If you have already generated (or copied, but dont do that) your SSH keys
and uploaded them to Github and/or to Phundrak Labs, you can use the and uploaded them to Github and/or to Phundrak Labs, you can use the
following urls instead as the remotes urls. following urls instead as the remotes urls.
#+BEGIN_SRC text #+BEGIN_SRC text
git@labs.phundrak.fr:phundrak/dotfiles.git git@labs.phundrak.fr:phundrak/dotfiles.git