From 9d9069dced39568a0b2a9b6c158de470d5206625 Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Sun, 23 Oct 2022 20:00:01 +0000 Subject: [PATCH] Update dotfiles/.profile, dotfiles/.zshrc --- dotfiles/.profile | 5 ++++- dotfiles/.zshrc | 3 +-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/dotfiles/.profile b/dotfiles/.profile index 0da452a0..b6e30245 100644 --- a/dotfiles/.profile +++ b/dotfiles/.profile @@ -235,10 +235,13 @@ if command -v brew > /dev/null; then ### Go export GOPATH="${HOME}/.local/go" export GOROOT="$(brew --prefix golang)/libexec" + export GO111MODULE=on export PATH="$PATH:${GOPATH}/bin:${GOROOT}/bin" ### ASDF - . $(brew --prefix asdf)/libexec/asdf.sh + if [ -f "$(brew --prefix asdf)/libexec/asdf.sh" ]; then + . $(brew --prefix asdf)/libexec/asdf.sh + fi fi ### Android Studio diff --git a/dotfiles/.zshrc b/dotfiles/.zshrc index 14ce39c6..fbbac78c 100644 --- a/dotfiles/.zshrc +++ b/dotfiles/.zshrc @@ -171,8 +171,7 @@ _source_plugin() { _source_plugin zsh-autosuggestions && ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=#999' # ZSH Syntax Highlighting -if _source_plugin zsh-syntax-highlighting -then +if _source_plugin zsh-syntax-highlighting; then ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern) ZSH_HIGHLIGHT_STYLES[default]=none ZSH_HIGHLIGHT_STYLES[unknown-token]=fg=white,underline