mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore(docs): update docs for correct use of shell and console and enforce linewidth (#9245)
This commit is contained in:
+11
-6
@@ -36,13 +36,13 @@ resource "coder_agent" "main" {
|
||||
|
||||
## Persistent Home
|
||||
|
||||
Sometimes you want to support personalization without
|
||||
requiring dotfiles.
|
||||
Sometimes you want to support personalization without requiring dotfiles.
|
||||
|
||||
In such cases:
|
||||
|
||||
- Mount a persistent volume to the `/home` directory
|
||||
- Set the `startup_script` to call a `~/personalize` script that the user can edit
|
||||
- Set the `startup_script` to call a `~/personalize` script that the user can
|
||||
edit
|
||||
|
||||
```hcl
|
||||
resource "coder_agent" "main" {
|
||||
@@ -63,7 +63,8 @@ sudo apt install -y neovim fish cargo
|
||||
|
||||
## Setup script support
|
||||
|
||||
User can setup their dotfiles by creating one of the following script files in their dotfiles repo:
|
||||
User can setup their dotfiles by creating one of the following script files in
|
||||
their dotfiles repo:
|
||||
|
||||
- `install.sh`
|
||||
- `install`
|
||||
@@ -74,9 +75,13 @@ User can setup their dotfiles by creating one of the following script files in t
|
||||
- `setup`
|
||||
- `script/setup`
|
||||
|
||||
If any of the above files are found (in the specified order), Coder will try to execute the first match. After the first match is found, other files will be ignored.
|
||||
If any of the above files are found (in the specified order), Coder will try to
|
||||
execute the first match. After the first match is found, other files will be
|
||||
ignored.
|
||||
|
||||
The setup script must be executable, otherwise the dotfiles setup will fail. If you encounter this issue, you can fix it by making the script executable using the following commands:
|
||||
The setup script must be executable, otherwise the dotfiles setup will fail. If
|
||||
you encounter this issue, you can fix it by making the script executable using
|
||||
the following commands:
|
||||
|
||||
```shell
|
||||
cd <path_to_dotfiles_repo>
|
||||
|
||||
Reference in New Issue
Block a user