Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Latest commit

 

History

History
57 lines (37 loc) · 2.21 KB

File metadata and controls

57 lines (37 loc) · 2.21 KB

fish Install Script

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

Syntax

./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.

Usage

Feature use

To install these capabilities in your primary dev container, reference it in devcontainer.json as follows:

"features": {
    "fish": "latest"
}

Script use

Usage:

  1. Add fish-debian.sh to .devcontainer/library-scripts

  2. 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!