Docs

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.

Bash Examples

Repository Description Try It
inlets/inlets Reverse proxy and service tunnel Open in Gitpod

VSCode 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:

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 configuration file to your repository that looks like this (notice the vscode extensions section):

image:
  file: .gitpod.Dockerfile

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

Not sure about ShellCheck? Try it in Gitpod!

JesterOrNot/Gitpod-ShellCheck

Bash IDE

A Bash IDE demonstration
Just to name a few things Bash IDE adds: Code completion, hovers, and diagnostic reporting.

To install Bash IDE to your repository add the following to your .gitpod.Dockerfile

RUN npm i -g bash-language-server

Also the following in your .gitpod.yml

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

External Resources