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 = { export const langs = {
bash: {
cmdline: ["bash"],
name: "Bash",
},
c: { c: {
cmdline: ["echo", "not implemented"], cmdline: ["echo", "not implemented"],
name: "C", name: "C",
@ -12,10 +16,38 @@ export const langs = {
cmdline: ["echo", "not implemented"], cmdline: ["echo", "not implemented"],
name: "C++", 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: { haskell: {
cmdline: ["ghci"], cmdline: ["ghci"],
name: "Haskell", name: "Haskell",
}, },
java: {
cmdline: ["echo", "not implemented"],
name: "Java",
},
julia: {
cmdline: ["julia"],
name: "Julia",
},
lua: {
cmdline: ["lua"],
name: "Lua",
},
nodejs: { nodejs: {
cmdline: ["node"], cmdline: ["node"],
name: "Node.js", name: "Node.js",
@ -24,4 +56,20 @@ export const langs = {
cmdline: ["python3"], cmdline: ["python3"],
name: "Python", 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=" packages="
# Needed for project infrastructure
bash
git
make
nodejs
yarn
# Handy utilities # Handy utilities
bsdmainutils bsdmainutils
curl curl
emacs-nox emacs-nox
git git
make make
man-db
nano nano
sudo sudo
tmux tmux
vim vim
wget wget
# Bash
bash
# C/C++ # C/C++
clang clang
# Clojure
clojure
# Emacs Lisp
emacs-nox
# Fish
fish
# Go
golang
# Haskell # Haskell
cabal-install cabal-install
ghc ghc
# Java
default-jdk
# Julia
julia
# Lua
lua5.3
# Node.js # Node.js
nodejs nodejs
yarn yarn
@ -51,6 +83,18 @@ python3
python3-pip python3-pip
python3-venv python3-venv
# Ruby
ruby
# Rust
rustc
# Vimscript
vim
# Zsh
zsh
" "
export DEBIAN_FRONTEND=noninteractive export DEBIAN_FRONTEND=noninteractive
@ -70,4 +114,7 @@ else
ln -s /root /home/docker ln -s /root /home/docker
fi fi
touch /home/docker/.zshrc
chown docker:docker /home/docker/.zshrc
rm "$0" rm "$0"