Skip to content
This repository has been archived by the owner on Apr 19, 2021. It is now read-only.

Commit

Permalink
Update src/docs/bash_in_gitpod.md
Browse files Browse the repository at this point in the history
Co-Authored-By: Jan Keromnes <[email protected]>

Update src/docs/bash_in_gitpod.md

Co-Authored-By: Jan Keromnes <[email protected]>

Update src/docs/bash_in_gitpod.md

Co-Authored-By: Jan Keromnes <[email protected]>

Update src/docs/bash_in_gitpod.md

Co-Authored-By: Jan Keromnes <[email protected]>

update dockerfile to use brew

update hierarchy

Update src/docs/bash_in_gitpod.md

Co-Authored-By: Jan Keromnes <[email protected]>

Update src/docs/bash_in_gitpod.md

Co-Authored-By: Jan Keromnes <[email protected]>

Update src/docs/bash_in_gitpod.md

Co-Authored-By: Jan Keromnes <[email protected]>

format

	modified:   src/docs/bash_in_gitpod.md
  • Loading branch information
Sean Hellum committed Jan 17, 2020
1 parent d473112 commit 1c90eb7
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/docs/bash_in_gitpod.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,23 @@
# Bash
Bash is pre-installed as the default shell in the main Gitpod workspace-image, however, there isn't much support for shell scripting out-of-the-box.

## Workspace Config
Bash is the default shell in Gitpod. But if you're developing Bash scripts yourself, you may want to configure additional language support for Bash.

### VSCode Extensions
## Workspace Config

#### Linting
### ShellCheck

##### ShellCheck
To use ShellCheck in Gitpod, first, we must install the `shellcheck` tool. Here is a Dockerfile to get you started.

To use ShellCheck in Gitpod, first, we must install it. Here is a Dockerfile to get you started.
```dockerfile
```Dockerfile
FROM gitpod/workspace-full

USER gitpod

RUN sudo apt-get -q update && \
sudo apt-get install -yq shellcheck && \
sudo rm -rf /var/lib/apt/lists/*
RUN brew install shellcheck
```
Here is a .gitpod.yml with the shellcheck VSCode Extension already installed.

You should also install the shellcheck VS Code extension in Gitpod, e.g. by adding a `.gitpod.yml` configuration file to your repository that looks like this (notice the `vscode` extensions section):

```yaml
image:
file: .gitpod.Dockerfile
Expand All @@ -28,9 +26,11 @@ vscode:
extensions:
- [email protected]:hsU/Rd39aqPYowTqL+DbXg==
```
Not sure about ShellCheck? Try it in Gitpod!
[![JesterOrNot/Gitpod-ShellCheck](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/JesterOrNot/Gitpod-ShellCheck)
## External Resources
* For more on ShellCheck see https://shellcheck.net
- For more on ShellCheck see https://shellcheck.net

0 comments on commit 1c90eb7

Please sign in to comment.