Skip to content

feat(cli): check if dotfiles install script is executable #8588

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Jul 21, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs: added docs regarding usage of setup script in dotfiles
  • Loading branch information
BRAVO68WEB committed Jul 21, 2023
commit 245ec38159d1a125a90754a6d76abd6dfcb3746b
27 changes: 27 additions & 0 deletions docs/dotfiles.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,30 @@ sudo apt update
# Install some of my favorite tools every time my workspace boots
sudo apt install -y neovim fish cargo
```

## Install or Setup script support

User can have either of the following setup script files in their dotfiles repo:

- install.sh
- install
- bootstrap.sh
- bootstrap
- script/bootstrap
- setup.sh
- setup
- script/setup

If any of these files are present, Coder will run them after cloning the dotfiles repo. If any of these files are found in the specified order, only the first match will be executed, and the rest will be skipped.

The Setup scripts must be executable. If they are not, Coder will not execute them. If the script is not executable, you can make it executable by running:

```bash
cd <path_to_dotfiles_repo>

chmod +x <script_name>

git commit -m "Make <script_name> executable" <script_name>

git push
```