Sign in

Mod for code-server

Bat

This mod adds bat to code-server, to be installed/updated during container start.

arch
amd64
built

Use it#

Set DOCKER_MODS on the code-server container and recreate it. The mod is pulled on every start; several mods are separated with |.

DOCKER_MODS=ghcr.io/linuxserver-playground/mods:code-server-bat

:code-server-bat always gets the newest build. To stay on this one, pin its tag:

DOCKER_MODS=ghcr.io/linuxserver-playground/mods:code-server-bat-608aa83
services:
  code-server:
    image: ghcr.io/linuxserver-playground/code-server:latest
    environment:
      - DOCKER_MODS=ghcr.io/linuxserver-playground/mods:code-server-bat

Details#

Bat is a cat(1) clone with syntax highlighting and Git integration.

Bat-extras and Ripgrep

This mod also includes bat-extras which has a dependency of ripgrep. Ripgrep has also been included because it is a requirment of bat-extras.

Aliases

This mod includes aliases for bat in bash and zsh. Under Ubuntu bat gets installed as batcat to avoid a name collision. So, for convenience, an alias to set bat="batcat" is included for both bash and zsh.

Community project

Improve this mod, or make your own

Mods are how LinuxServer images grow without getting heavier: a Dockerfile, a few scripts and a mod.yml. If this one is missing something, or you need one like it for another image, an AI agent in our harness can build and test it with you.

Ask your agent

  • The code-server-bat mod <what is wrong>. Fix it, test it and draft the PR.
  • Make a mod like code-server-bat for <another image>, and test it.

Making a mod Every way to help Get the harness (opens in a new tab)

Source: code-server-bat branch (opens in a new tab). Every mod