chore: Clean up $PATH env
The original script adds way too much dirs to the PATH env variable
This commit is contained in:
parent
c11a8264ec
commit
929d7b985f
2 changed files with 3 additions and 3 deletions
|
@ -32,10 +32,10 @@ fi
|
|||
export BUN_INSTALL="$HOME/.bun"
|
||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
export PYTHONPATH="$HOME/Library/Python/3.10/lib:$PYTHONPATH"
|
||||
LOCAL_PATH=$(du "$HOME/.local/bin/" | cut -f2 > /tmp/path && paste -sd ':' /tmp/path)
|
||||
LOCAL_PATH=$(du "$HOME/.local/bin/" -d 1 | cut -f2 > /tmp/ENV_PATH && paste -sd ':' /tmp/ENV_PATH)
|
||||
LOCAL_PATH="$HOME/Library/Python/3.10/bin:$LOCAL_PATH"
|
||||
elif [[ "$OSTYPE" == "linux-gnu" ]]; then
|
||||
LOCAL_PATH="$(du "$HOME/.local/bin/" | cut -f2 | paste -sd ':')${PATH:+:${PATH}}"
|
||||
LOCAL_PATH=$(du "$HOME/.local/bin/" -d 1 | cut -f2 | paste -sd ':')
|
||||
fi
|
||||
PATH="$BUN_INSTALL/bin:$HOME/.pub-cache/bin:$HOME/.local/share/go/bin:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$ANDROID_AVD_HOME:$HOME/.local/share/npm/bin:$HOME/.local/share/cargo/bin:$LOCAL_PATH${PATH:+:${PATH}}"
|
||||
# export RUST_SRC_PATH=$(rustc --print sysroot)/lib/rustlib/src/rust/library
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue