From ade5f0e8ea87615233c8a6ff8f07663aa0703dd3 Mon Sep 17 00:00:00 2001 From: Michael Zhang Date: Thu, 13 Jun 2024 10:48:49 -0400 Subject: [PATCH] add local/bin --- .chezmoitemplates/nu-config.nu | 4 +++- .chezmoitemplates/nu-env.nu | 8 ++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.chezmoitemplates/nu-config.nu b/.chezmoitemplates/nu-config.nu index 18a4af1..5378c70 100644 --- a/.chezmoitemplates/nu-config.nu +++ b/.chezmoitemplates/nu-config.nu @@ -898,7 +898,6 @@ $env.config = { } source ~/.cache/starship/init.nu -source ~/.zoxide.nu alias ga = git add alias gaa = git add --all @@ -917,3 +916,6 @@ alias grm = git rm alias grmc = git rm --cached alias gsh = git show alias gst = git status + +# This MUST be at the end +source ~/.zoxide.nu \ No newline at end of file diff --git a/.chezmoitemplates/nu-env.nu b/.chezmoitemplates/nu-env.nu index a91c475..2ee5454 100644 --- a/.chezmoitemplates/nu-env.nu +++ b/.chezmoitemplates/nu-env.nu @@ -104,6 +104,11 @@ $env.NU_PLUGIN_DIRS = [ $env.ANDROID_HOME = '/Users/michael/Library/Android/sdk' $env.EDITOR = 'hx' +$env.OPAM_SWITCH_PREFIX = '~/.opam/5.1.0' +$env.OCAML_TOPLEVEL_PATH = '~/.opam/5.1.0/lib/toplevel' +$env.CAML_LD_LIBRARY_PATH = '~/.opam/5.1.0/lib/stublibs:/opt/homebrew/lib/ocaml/stublibs:/opt/homebrew/lib/ocaml' + +path add `~/.local/bin` path add '/opt/homebrew/bin' path add '/usr/local/bin' path add '~/go/bin' @@ -114,7 +119,10 @@ path add `~/.cargo/bin` path add `~/Library/Application Support/fnm/aliases/default/bin/` path add `~/.bun/bin` path add `~/.ghcup/bin` +path add `~/.opam/5.1.0/bin` mkdir ~/.cache/starship starship init nu | save -f ~/.cache/starship/init.nu + +# This MUST be at the end zoxide init nushell | save -f ~/.zoxide.nu