fucking conda lmao
Browse filesSigned-off-by: Balazs Horvath <acsipont@gmail.com>
.zshrc
CHANGED
@@ -126,6 +126,12 @@ source $ZSH/oh-my-zsh.sh
|
|
126 |
# - CUDA binary directory
|
127 |
export PATH=$PATH:$HOME/source/repos/dataset-tools/target/x86_64-unknown-linux-gnu/release:$HOME/.cargo/bin:$HOME/miniconda3/bin:$HOME/toolkit:$HOME/db/redis-stable/src:$HOME/db/postgresql/bin:$HOME/.local/bin:/opt/cuda/bin
|
128 |
|
|
|
|
|
|
|
|
|
|
|
|
|
129 |
# Extend the LD_LIBRARY_PATH to include:
|
130 |
# - Conda environment's library directory
|
131 |
# - CUDA library directory for x86_64 Linux
|
|
|
126 |
# - CUDA binary directory
|
127 |
export PATH=$PATH:$HOME/source/repos/dataset-tools/target/x86_64-unknown-linux-gnu/release:$HOME/.cargo/bin:$HOME/miniconda3/bin:$HOME/toolkit:$HOME/db/redis-stable/src:$HOME/db/postgresql/bin:$HOME/.local/bin:/opt/cuda/bin
|
128 |
|
129 |
+
# Function to remove $HOME/miniconda3/bin, $HOME/miniconda3/condabin from PATH and $HOME/miniconda3/lib from LD_LIBRARY_PATH
|
130 |
+
rconda() {
|
131 |
+
export PATH=$(echo $PATH | tr ':' '\n' | grep -v "$HOME/miniconda3/bin" | grep -v "$HOME/miniconda3/condabin" | tr '\n' ':' | sed 's/:$//')
|
132 |
+
export LD_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | tr ':' '\n' | grep -v "$HOME/miniconda3/lib" | tr '\n' ':' | sed 's/:$//')
|
133 |
+
}
|
134 |
+
|
135 |
# Extend the LD_LIBRARY_PATH to include:
|
136 |
# - Conda environment's library directory
|
137 |
# - CUDA library directory for x86_64 Linux
|