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
1. Click**Commit changes** and then select**Commit changes directly to the`main` branch**.
37
43
1. Create a new codespace by navigating back to the**Code** tab of your repository.
@@ -43,6 +49,6 @@ Let's add a `devcontainer.json` file and add a custom image.
43
49
44
50
1. Verify that your new codespace is is running, as you did previously.
45
51
46
-
Note the image being used is the default image provided for GitHub Codespaces. It includes runtimes and tools for Python, Node.js, Docker, and more. See the full list here:https://aka.ms/ghcs-default-image. Your development team can use any custom image that has the necessary prerequisites installed. For more information, see[codespace image](https://aka.ms/configure-codespace).
52
+
Note the image being used is the default image provided for GitHub Codespaces. It includes runtimes and tools for Python, Node.js, Docker, and more. See the full list here:https://aka.ms/ghcs-default-image. Your development team can use any custom image that has the necessary prerequisites installed. For more information, see[codespace image](https://aka.ms/configure-codespace).
47
53
48
54
1. Wait about 20 seconds then refresh this page (the one you're following instructions from).[GitHub Actions](https://docs.github.com/en/actions) will automatically update to the next step.
1. From inside the codespace in the VS Code explorer window, create a new file`setup.sh`.
34
41
1. Add the following code inside of the file:
35
42
36
-
```
37
-
#!/bin/bash
43
+
```bash
44
+
#!/bin/bash
38
45
39
-
sudo apt-get update
40
-
sudo apt-get install sl
41
-
```
46
+
sudo apt-get update
47
+
sudo apt-get install sl
48
+
```
42
49
43
50
1. Save the file.
44
51
>**Note**: The file should autosave.
45
52
1. Commit the file changes. From the VS Code terminal enter:
46
53
47
-
```
48
-
git add setup.sh --chmod=+x
49
-
git commit -m "Adding setup.sh from the codespace!"
50
-
```
54
+
```shell
55
+
git add setup.sh --chmod=+x
56
+
git commit -m"Adding setup.sh from the codespace!"
57
+
```
51
58
52
59
1. Push the changes back to your repository. From the VS Code terminal, enter:
53
60
54
-
```
55
-
git push
56
-
```
61
+
```shell
62
+
git push
63
+
```
57
64
58
65
1. Switch back to the homepage of your repository and view the`setup.sh` to verify the new code was pushed to your repository.
59
66
1. Close the codespace web browser tab.
@@ -65,9 +72,9 @@ git push
65
72
1. Verify the`setup.sh` file is present in your VS Code editor.
66
73
1. From the VS Code terminal, type or paste:
67
74
68
-
```
69
-
/usr/games/sl
70
-
```
75
+
```shell
76
+
/usr/games/sl
77
+
```
71
78
72
79
1. Enjoy the show!
73
80
1. Wait about 20 seconds then refresh this page (the one you're following instructions from).[GitHub Actions](https://docs.github.com/en/actions) will automatically update to the next step.