Skip to content

Commit d52629b

Browse files
committed
review tuto
1 parent d8a5a6c commit d52629b

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

chapters/config-git.qmd

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,20 @@ gert::git_config_global_set(
4545
From now, when you will initialize `git` in a project, the default branch
4646
will be **main**.
4747

48+
Finally, let's add this option to use `nano` as the default text editor for editing commits (instead of `vi`):
49+
50+
```{r}
51+
#| echo: true
52+
#| eval: false
53+
54+
# Define nano as the default cli text editor ----
55+
gert::git_config_global_set(
56+
name = "core.editor",
57+
value = "nano"
58+
)
59+
```
60+
61+
4862
Check your `git` configuration:
4963

5064
```{r}
@@ -57,4 +71,5 @@ gert::git_config_global()
5771
# user.name Jane Doe global
5872
# user.email [email protected] global
5973
# init.defaultbranch main global
74+
# core.editor nano global
6075
```

chapters/reproducible-research.qmd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,8 @@ Once the package is installed, you need to store some personal information local
467467
468468
# Open the ~/.Rprofile file ----
469469
usethis::edit_r_profile()
470+
# • Modify '~/.Rprofile'
471+
# • Restart R for changes to take effect
470472
```
471473

472474
And paste these lines in the `~/.Rprofile` file:

0 commit comments

Comments
 (0)