From 9c083eb0d4a05ca99695257b038bf9461b48782f Mon Sep 17 00:00:00 2001 From: earnest ma Date: Sun, 28 Apr 2024 20:32:17 -0400 Subject: [PATCH] go stuff --- doom/.config/doom/init.el | 2 +- zsh/.zprofile | 3 +++ zsh/.zshrc | 5 ++++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/doom/.config/doom/init.el b/doom/.config/doom/init.el index 13df073..7248f92 100644 --- a/doom/.config/doom/init.el +++ b/doom/.config/doom/init.el @@ -135,7 +135,7 @@ ;;fsharp ; ML stands for Microsoft's Language ;;fstar ; (dependent) types and (monadic) effects and Z3 ;;gdscript ; the language you waited for - ;;(go +lsp) ; the hipster dialect + (go +lsp) ; the hipster dialect ;;(graphql +lsp) ; Give queries a REST ;;(haskell +lsp) ; a language that's lazier than I am ;;hy ; readability of scheme w/ speed of python diff --git a/zsh/.zprofile b/zsh/.zprofile index c4e3308..d82f5ac 100644 --- a/zsh/.zprofile +++ b/zsh/.zprofile @@ -30,6 +30,9 @@ if [[ $HOST == "tycho" ]]; then pathadd_tail "$HOME/.wakatime" fi +# go +pathadd_tail "$HOME/go/bin" + # rust [ -f $HOME/.cargo/env ] && source $HOME/.cargo/env diff --git a/zsh/.zshrc b/zsh/.zshrc index 08e4c3a..e5302d9 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -139,8 +139,11 @@ eval "$(zoxide init zsh)" if [[ $HOST == "blahaj.local" ]]; then export PATH="/usr/local/opt/llvm/bin:$PATH" - export LDFLAGS="-L/opt/homebrew/opt/llvm/lib" + export LDFLAGS="-L/opt/homebrew/opt/llvm/lib" export CPPFLAGS="-I/opt/homebrew/opt/llvm/include" + # -I tells GCC where to look for header files to include + export C_INCLUDE_PATH="${C_INCLUDE_PATH}:/opt/homebrew/include" + export LIBRARY_PATH="${LIBRARY_PATH}:/opt/homebrew/lib" fi PATH="/Users/earne/perl5/bin${PATH:+:${PATH}}"; export PATH;