> ## Documentation Index
> Fetch the complete documentation index at: https://ona.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Bash in Gitpod

Bash is the default shell for Gitpod. However, if you're developing a Bash script yourself, you may want to configure additional language support.

## VS Code Extensions

### ShellCheck

ShellCheck provides linting for common mistakes in your shell script.

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

```dockerfile theme={null}
FROM gitpod/workspace-full

USER gitpod

RUN brew install shellcheck
```

You should also install the shellcheck VS Code extension in Gitpod, by adding a [.gitpod.yml](/classic/user/references/gitpod-yml) configuration file to your repository that looks like this (notice the `vscode` extensions section):

```yml theme={null}
image:
    file: .gitpod.Dockerfile

vscode:
    extensions:
        - timonwong.shellcheck@0.9.0:hsU/Rd39aqPYowTqL+DbXg==
```

Not sure about ShellCheck? Try it in Gitpod!

[![gitpod-io/Gitpod-ShellCheck](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/gitpod-io/Gitpod-ShellCheck)

### Bash IDE

Bash IDE adds code completion, hovers, and diagnostic reporting.

To install Bash IDE to your repository add the following to your [.gitpod.Dockerfile](/classic/user/configure/workspaces/workspace-image)

```dockerfile theme={null}
RUN npm i -g bash-language-server
```

Also the following in your
[.gitpod.yml](/classic/user/references/gitpod-yml)

```yml theme={null}
vscode:
    extensions:
        - mads-hartmann.bash-ide-vscode@1.4.0:/qx+rdXE/fGTGWhelNf3aQ==
```

Not sure about Bash IDE? Try it in Gitpod

[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/gitpod-io/Gitpod-BashIDE)

## Further Reading

* For more information about ShellCheck please see [shellcheck.net](https://shellcheck.net)

## Known issues

### The shellcheck program was not found

[It has been reported](https://github.com/gitpod-io/gitpod/issues/1461#issuecomment-621232166) that shellcheck extension fails to detect shellcheck from homebrew which results in:
![shellcheck notification](https://user-images.githubusercontent.com/11302521/80605581-91110b80-8a33-11ea-9247-44cb33134cc9.png)

To resolve this you need to set `"shellcheck.executablePath": "/home/linuxbrew/.linuxbrew/bin/shellcheck",` (or to path that point to shellcheck on your system), See [https://github.com/vivek-verma202/GWAS\_FM/pull/3/files](https://github.com/vivek-verma202/GWAS_FM/pull/3/files)
