From a843704e870619839a33949752df4a1c993dfea5 Mon Sep 17 00:00:00 2001 From: Jeremy Wall Date: Fri, 4 Aug 2023 15:24:39 -0400 Subject: [PATCH] Ocaml shell integration --- nix/base-system/.zshrc | 3 +++ nix/base-system/flake.nix | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/nix/base-system/.zshrc b/nix/base-system/.zshrc index fffff04..153214f 100644 --- a/nix/base-system/.zshrc +++ b/nix/base-system/.zshrc @@ -1,2 +1,5 @@ export PROMPT='%F{green}[%T] %F{cyan}(%n@%m) %F{lightgrey}(%y) %F{cyan} %~ %F{white}%(!.>>.$>) ' + +# Opam configurattion +[[ ! -r ~/.opam/opam-init/init.zsh ]] || source ~/.opam/opam-init/init.zsh > /dev/null 2> /dev/null diff --git a/nix/base-system/flake.nix b/nix/base-system/flake.nix index 52d46f4..7330d29 100644 --- a/nix/base-system/flake.nix +++ b/nix/base-system/flake.nix @@ -150,10 +150,10 @@ datasette ocaml opam - dune-release # TODO add sonic-pi here if it supports the arch ]) ++ (with ocamlPackages; [ lsp + dune_3 ]) ++ [ sile runwhen