Add support for 12 new languages

This commit is contained in:
Radon Rosborough 2020-06-06 14:16:22 -06:00
parent 250509ffe1
commit 22ea7a3e75
2 changed files with 95 additions and 0 deletions

View File

@ -4,6 +4,10 @@ export interface LangConfig {
}
export const langs = {
bash: {
cmdline: ["bash"],
name: "Bash",
},
c: {
cmdline: ["echo", "not implemented"],
name: "C",
@ -12,10 +16,38 @@ export const langs = {
cmdline: ["echo", "not implemented"],
name: "C++",
},
clojure: {
cmdline: ["clojure"],
name: "Clojure",
},
emacs: {
cmdline: ["emacs"],
name: "Emacs Lisp",
},
fish: {
cmdline: ["env", "SHELL=/usr/bin/fish", "fish"],
name: "Fish",
},
go: {
cmdline: ["echo", "not implemented"],
name: "Go",
},
haskell: {
cmdline: ["ghci"],
name: "Haskell",
},
java: {
cmdline: ["echo", "not implemented"],
name: "Java",
},
julia: {
cmdline: ["julia"],
name: "Julia",
},
lua: {
cmdline: ["lua"],
name: "Lua",
},
nodejs: {
cmdline: ["node"],
name: "Node.js",
@ -24,4 +56,20 @@ export const langs = {
cmdline: ["python3"],
name: "Python",
},
ruby: {
cmdline: ["irb"],
name: "Ruby",
},
rust: {
cmdline: ["echo", "not implemented"],
name: "Rust",
},
vim: {
cmdline: ["vim"],
name: "Vimscript",
},
zsh: {
cmdline: ["env", "SHELL=/usr/bin/zsh", "zsh"],
name: "Zsh",
},
};

View File

@ -23,25 +23,57 @@ EOF
packages="
# Needed for project infrastructure
bash
git
make
nodejs
yarn
# Handy utilities
bsdmainutils
curl
emacs-nox
git
make
man-db
nano
sudo
tmux
vim
wget
# Bash
bash
# C/C++
clang
# Clojure
clojure
# Emacs Lisp
emacs-nox
# Fish
fish
# Go
golang
# Haskell
cabal-install
ghc
# Java
default-jdk
# Julia
julia
# Lua
lua5.3
# Node.js
nodejs
yarn
@ -51,6 +83,18 @@ python3
python3-pip
python3-venv
# Ruby
ruby
# Rust
rustc
# Vimscript
vim
# Zsh
zsh
"
export DEBIAN_FRONTEND=noninteractive
@ -70,4 +114,7 @@ else
ln -s /root /home/docker
fi
touch /home/docker/.zshrc
chown docker:docker /home/docker/.zshrc
rm "$0"