From 9431c745295b12c8724f74288de1c6efea3cfd47 Mon Sep 17 00:00:00 2001 From: afonso Date: Tue, 12 Nov 2024 15:46:32 +0000 Subject: [PATCH] [zsh] added more envs and remove direnv --- .config/zsh/.zshenv | 3 +++ .config/zsh/.zshrc | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.config/zsh/.zshenv b/.config/zsh/.zshenv index d045ada..654463f 100644 --- a/.config/zsh/.zshenv +++ b/.config/zsh/.zshenv @@ -14,6 +14,8 @@ if [[ $(uname) == "Darwin" ]]; then export PATH="/opt/homebrew/bin:$PATH" export PATH="/opt/homebrew/opt/openjdk@17/bin:$PATH" export PATH="/opt/homebrew/opt/texlive/bin:$PATH" + export GEM_HOME=$HOME/.gem + export PATH=$PATH:$GEM_HOME/bin else #ONLY LINUX export LIBVA_DRIVER_NAME=nvidia @@ -40,3 +42,4 @@ export XDG_CACHE_HOME="${HOME}/.cache" export XDG_DATA_HOME="${HOME}/.local/share" export XDG_STATE_HOME="${HOME}/.local/state" +. "$HOME/.cargo/env" diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 2dc272f..31a7b3e 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -47,9 +47,8 @@ unset __conda_setup if [ -f "$HOME/.miniforge3/etc/profile.d/mamba.sh" ]; then . "$HOME/.miniforge3/etc/profile.d/mamba.sh" fi - # <<< conda initialize <<< -eval "$(direnv hook zsh)" + if [[ $(uname) == "Darwin" ]]; then eval "$(/opt/homebrew/bin/brew shellenv)" fi