Skip to content

Commit b40a5a9

Browse files
Add OCaml (basecamp#598)
* Add OCaml Add OCaml according to https://ocaml.org/install#linux_mac_bsd I included also the development environment (LSP and some tools) as I figured this would be actually omakase but I can also remove it if we want to keep it clean. * small fix
1 parent 4237807 commit b40a5a9

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

bin/omarchy-install-dev-env

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
if [[ -z "$1" ]]; then
4-
echo "Usage: omarchy-instal-dev-env <ruby|node|bun|go|laravel|python|elixir|rust|java>" >&2
4+
echo "Usage: omarchy-instal-dev-env <ruby|node|bun|go|laravel|python|elixir|rust|java|ocaml>" >&2
55
exit 1
66
fi
77

@@ -48,4 +48,11 @@ java)
4848
echo -e "Installing Java...\n"
4949
mise use --global java@latest
5050
;;
51+
ocaml)
52+
echo -e "Installing OCaml...\n"
53+
bash -c "$(curl -fsSL https://raw.githubusercontent.com/ocaml/opam/master/shell/install.sh)"
54+
opam init --yes
55+
eval "$(opam env)"
56+
opam install ocaml-lsp-server odoc ocamlformat utop --yes
57+
;;
5158
esac

0 commit comments

Comments
 (0)