Note: This is a community contributed and maintained script.
Adds fish shell to a container.
Script status: Stable
OS support: Debian 9+, Ubuntu 16.04+.
Maintainer: @andreiborisov, @eitsupi
./fish-debian.sh [Install Fisher flag] [Non-root user]
Or as a feature:
"features": {
"fish": "latest"
}
Argument | Feature option | Default | Description |
---|---|---|---|
Install Fisher flag | true |
A true /false flag that indicates whether to install Fisher plugin manager. |
|
Non-root user | automatic |
Specifies a user in the container other than root that will use fish shell. A value of automatic will cause the script to check for a user called vscode , then node , codespace , and finally a user with a UID of 1000 before falling back to root . |
To install these capabilities in your primary dev container, reference it in devcontainer.json
as follows:
"features": {
"fish": "latest"
}
Usage:
-
Add
fish-debian.sh
to.devcontainer/library-scripts
-
Add the following to your
.devcontainer/Dockerfile
:COPY library-scripts/fish-debian.sh /tmp/library-scripts/ RUN apt-get update && bash /tmp/library-scripts/fish-debian.sh
That's it!