You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: LINUX.md
+31-96Lines changed: 31 additions & 96 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -669,79 +669,57 @@ The browser has now saved the service account json file 🔑 in your downloads d
669
669
670
670
## Dotfiles
671
671
672
-
Let's pimp your zsh and and vscode by installing lewagon recommanded dotfiles **on your Virtual Machine**
672
+
Let's enhance the developer experience on your Virtual Machine by install Le Wagon's pre-configured [dotfiles 🔗](https://github.com/lewagon/dotfiles) for your terminal, zsh and VS Code.
673
673
674
-
There are three options, choose **one**:
675
-
676
-
<details>
677
-
<summary>
678
-
<strong>I already attended Web-Dev or Data-Science bootcamp at Le Wagon <em>🚨 on the same Virtual Machine (highly unlikely!🚨)</em></strong>
679
-
</summary>
680
-
681
-
This means that you already forked the GitHub repo `lewagon/dotfiles`, but at that time the configuration was maybe not ready for the new Data Science bootcamp.
682
-
683
-
Open your terminal and go to your `dotfiles` project:
684
-
685
-
```bash
686
-
cd ~/code/<YOUR_GITHUB_NICKNAME>/dotfiles
687
-
code . # Open it in VS Code
688
-
```
689
-
690
-
In VS Code, open the `zshrc` file. Replace its content with the [newest version](https://raw.githubusercontent.com/lewagon/dotfiles/master/zshrc) of that file that we provide. Save to disk.
691
-
692
-
Back to the terminal, run a `git diff` and ask a TA to come and check about this configuration change. You should see stuff about Python and `pyenv`.
693
-
694
-
Once this is good, commit and push your changes:
695
-
696
-
```bash
697
-
git add zshrc
698
-
git commit -m "Update zshrc for Data Engineering bootcamp"
699
-
git push origin master
700
-
```
701
-
702
-
</details>
703
-
704
-
OR
674
+
To customise this configuration for yourself, you'll need to **fork** the repository to your own Github account.
705
675
676
+
**Forking** creates a copy of the repository under your account (`your_github_username/dotfiles`), which you can then modify with your personal information, such as your name.
706
677
707
678
<details>
708
-
<summary>
709
-
<strong>I did not attend the Web-Dev or Data-Science bootcamp at Le Wagon</strong>
710
-
</summary>
679
+
<summary>❗ I started a Le Wagon <strong>Web Development</strong> or <strong>Data Science</strong> bootcamp in 2021 or earlier. ❗</summary>
711
680
712
-
Hackers love to refine and polish their shell and tools. We'll start with a great default configuration provided by [Le Wagon](http://github.com/lewagon/dotfiles), stored on GitHub. As your configuration is personal, you need your own repository storing it, so you first need to fork it to your GitHub account.
681
+
You may have a older version of the Le Wagon dotfiles. The second Ansible playbook will try to modify some of these dotfiles.
713
682
714
-
:arrow_right:[Click here to **fork**](https://github.com/lewagon/dotfiles/fork) the `lewagon/dotfiles` repository to your account (you'll need to click again on your picture to confirm _where_ you do the fork).
715
683
716
-
Forking means that it will create a new repo in your GitHub account, identical to the original one. You'll have a new repository on your GitHub account, `your_github_username/dotfiles`. We need to fork because each of you will need to put specific information (e.g. your name) in those
717
-
files.
684
+
Open a ticket with a TA and do one of the following:
685
+
- Compare your existing dotfiles with the current Le Wagon [dotfiles 🔗](https://github.com/lewagon/dotfiles), particularly the `.zshrc` and `settings.json` - if there is no meaningful difference, continue with the setup.
686
+
- If you are OK with losing your existing dotfiles - delete your existing dotfiles repository on GitHub and continue with the setup
687
+
- If you do not want to lose your existing dotfiles, we recommend working with branches:
688
+
- On your **laptop**, or wherever you have a **local** copy of **your** copy of dotfiles
689
+
- Create a branch of your existing dotfiles setup, and push to GitHub - `origin <branchname>`
690
+
- On `local main` (or a new named branch), pull from `upstream main`, resolve any conflicts, commit, and push. It is important that you accept incoming changes to the `.zshrc` and `settings.json` files
691
+
- Continue with the setup
692
+
- If you pulled from `upstream main` to a new named branch, change to that branch before executing the dotfiles installer: `install.sh`.
693
+
- Open `git_setup.sh` in a text editor and comment out or remove the lines that push to `origin main`
694
+
</details>
718
695
696
+
<br>
719
697
720
-
Open your terminal and run the following command:
698
+
Open your terminal on your VM and run the following command:
721
699
722
700
```bash
723
701
export GITHUB_USERNAME=`gh api user | jq -r '.login'`
724
702
echo $GITHUB_USERNAME
725
703
```
726
704
727
-
You should see your GitHub username printed. If it's not the case, **stop here** and ask for help.
728
-
There seems to be a problem with the previous step (`gh auth`).
705
+
You should see your Github username printed.
706
+
707
+
❗ If you do not see your Github username being printed - **stop here** - and raise a ticket with a TA 🙋 There may be a problem with the previous step (`gh auth`).
729
708
730
-
Time to fork the repo and clone it on your laptop:
709
+
To fork the Le Wagon dotfiles repository and clone it on your Virtual Machine. Execute the following command:
💡 Select the `...@users.noreply.github.com` address if you don't want your email to appear in public repositories you may contribute to.
794
740
795
-
Check the emails registered with your GitHub Account. You'll need to pick one
796
-
at the next step:
797
741
798
-
```bash
799
-
gh api user/emails | jq -r '.[].email'
800
-
```
742
+
---
801
743
802
-
Run the git installer:
744
+
Once you have finished installing the **dotfiles**, kill your terminal (little trash can at the top right of the terminal window) and re-open it. You might have to do it a few times until it looks similar to:
Copy file name to clipboardExpand all lines: WINDOWS.md
+31-96Lines changed: 31 additions & 96 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -636,79 +636,57 @@ The browser has now saved the service account json file 🔑 in your downloads d
636
636
637
637
## Dotfiles
638
638
639
-
Let's pimp your zsh and and vscode by installing lewagon recommanded dotfiles **on your Virtual Machine**
639
+
Let's enhance the developer experience on your Virtual Machine by install Le Wagon's pre-configured [dotfiles 🔗](https://github.com/lewagon/dotfiles) for your terminal, zsh and VS Code.
640
640
641
-
There are three options, choose **one**:
642
-
643
-
<details>
644
-
<summary>
645
-
<strong>I already attended Web-Dev or Data-Science bootcamp at Le Wagon <em>🚨 on the same Virtual Machine (highly unlikely!🚨)</em></strong>
646
-
</summary>
647
-
648
-
This means that you already forked the GitHub repo `lewagon/dotfiles`, but at that time the configuration was maybe not ready for the new Data Science bootcamp.
649
-
650
-
Open your terminal and go to your `dotfiles` project:
651
-
652
-
```bash
653
-
cd ~/code/<YOUR_GITHUB_NICKNAME>/dotfiles
654
-
code . # Open it in VS Code
655
-
```
656
-
657
-
In VS Code, open the `zshrc` file. Replace its content with the [newest version](https://raw.githubusercontent.com/lewagon/dotfiles/master/zshrc) of that file that we provide. Save to disk.
658
-
659
-
Back to the terminal, run a `git diff` and ask a TA to come and check about this configuration change. You should see stuff about Python and `pyenv`.
660
-
661
-
Once this is good, commit and push your changes:
662
-
663
-
```bash
664
-
git add zshrc
665
-
git commit -m "Update zshrc for Data Engineering bootcamp"
666
-
git push origin master
667
-
```
668
-
669
-
</details>
670
-
671
-
OR
641
+
To customise this configuration for yourself, you'll need to **fork** the repository to your own Github account.
672
642
643
+
**Forking** creates a copy of the repository under your account (`your_github_username/dotfiles`), which you can then modify with your personal information, such as your name.
673
644
674
645
<details>
675
-
<summary>
676
-
<strong>I did not attend the Web-Dev or Data-Science bootcamp at Le Wagon</strong>
677
-
</summary>
646
+
<summary>❗ I started a Le Wagon <strong>Web Development</strong> or <strong>Data Science</strong> bootcamp in 2021 or earlier. ❗</summary>
678
647
679
-
Hackers love to refine and polish their shell and tools. We'll start with a great default configuration provided by [Le Wagon](http://github.com/lewagon/dotfiles), stored on GitHub. As your configuration is personal, you need your own repository storing it, so you first need to fork it to your GitHub account.
648
+
You may have a older version of the Le Wagon dotfiles. The second Ansible playbook will try to modify some of these dotfiles.
680
649
681
-
:arrow_right:[Click here to **fork**](https://github.com/lewagon/dotfiles/fork) the `lewagon/dotfiles` repository to your account (you'll need to click again on your picture to confirm _where_ you do the fork).
682
650
683
-
Forking means that it will create a new repo in your GitHub account, identical to the original one. You'll have a new repository on your GitHub account, `your_github_username/dotfiles`. We need to fork because each of you will need to put specific information (e.g. your name) in those
684
-
files.
651
+
Open a ticket with a TA and do one of the following:
652
+
- Compare your existing dotfiles with the current Le Wagon [dotfiles 🔗](https://github.com/lewagon/dotfiles), particularly the `.zshrc` and `settings.json` - if there is no meaningful difference, continue with the setup.
653
+
- If you are OK with losing your existing dotfiles - delete your existing dotfiles repository on GitHub and continue with the setup
654
+
- If you do not want to lose your existing dotfiles, we recommend working with branches:
655
+
- On your **laptop**, or wherever you have a **local** copy of **your** copy of dotfiles
656
+
- Create a branch of your existing dotfiles setup, and push to GitHub - `origin <branchname>`
657
+
- On `local main` (or a new named branch), pull from `upstream main`, resolve any conflicts, commit, and push. It is important that you accept incoming changes to the `.zshrc` and `settings.json` files
658
+
- Continue with the setup
659
+
- If you pulled from `upstream main` to a new named branch, change to that branch before executing the dotfiles installer: `install.sh`.
660
+
- Open `git_setup.sh` in a text editor and comment out or remove the lines that push to `origin main`
661
+
</details>
685
662
663
+
<br>
686
664
687
-
Open your terminal and run the following command:
665
+
Open your terminal on your VM and run the following command:
688
666
689
667
```bash
690
668
export GITHUB_USERNAME=`gh api user | jq -r '.login'`
691
669
echo $GITHUB_USERNAME
692
670
```
693
671
694
-
You should see your GitHub username printed. If it's not the case, **stop here** and ask for help.
695
-
There seems to be a problem with the previous step (`gh auth`).
672
+
You should see your Github username printed.
673
+
674
+
❗ If you do not see your Github username being printed - **stop here** - and raise a ticket with a TA 🙋 There may be a problem with the previous step (`gh auth`).
696
675
697
-
Time to fork the repo and clone it on your laptop:
676
+
To fork the Le Wagon dotfiles repository and clone it on your Virtual Machine. Execute the following command:
💡 Select the `...@users.noreply.github.com` address if you don't want your email to appear in public repositories you may contribute to.
761
707
762
-
Check the emails registered with your GitHub Account. You'll need to pick one
763
-
at the next step:
764
708
765
-
```bash
766
-
gh api user/emails | jq -r '.[].email'
767
-
```
709
+
---
768
710
769
-
Run the git installer:
711
+
Once you have finished installing the **dotfiles**, kill your terminal (little trash can at the top right of the terminal window) and re-open it. You might have to do it a few times until it looks similar to:
0 commit comments