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