dotfiles/zsh/path.zsh

52 lines
1.2 KiB
Bash
Raw Normal View History

2017-10-20 09:24:40 +01:00
# The base path
export PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH
# The scripts path
export PATH=$DOTFILES/bin:$PATH
2017-10-20 09:24:40 +01:00
if [ -d "$HOME/.scripts" ]; then
export PATH=$HOME/.scripts:$PATH
fi
2020-02-14 15:23:29 +00:00
if [ -d "$HOME/.config/dotfiles/bin-extra" ]; then
export PATH=$HOME/.config/dotfiles/bin-extra:$PATH
fi
2017-10-20 09:24:40 +01:00
# Rust path
if [ -d $HOME/.cargo ]; then
export PATH=$HOME/.cargo/bin:$PATH
2019-03-19 17:05:22 +00:00
# Use sccache if available
command -v sccache > /dev/null 2>&1
if [ $? -eq 0 ]; then
export RUSTC_WRAPPER=sccache
fi
2017-10-20 09:24:40 +01:00
fi
2021-07-02 14:38:33 +01:00
# .local path
if [ -d $HOME/.local/bin ]; then
export PATH=$HOME/.local/bin:$PATH
fi
2019-04-26 13:56:39 +01:00
# Wasmer path
if [ -d $HOME/.wasmer ]; then
export WASMER_DIR="$HOME/.wasmer"
2019-06-03 17:01:33 +01:00
export WASMER_CACHE_DIR="$WASMER_DIR/cache"
export PATH="$WASMER_DIR/bin:$WASMER_DIR/globals/wapm_packages/.bin:$PATH"
2019-04-26 13:56:39 +01:00
fi
2019-03-15 14:32:54 +00:00
# Node path
if [ -d $HOME/.npmbin ]; then
export PATH=$HOME/.npmbin/bin:$PATH
2018-12-14 08:53:41 +00:00
fi
2017-10-20 09:24:40 +01:00
# LD_LIBRARY_PATH: I don't know why there is this line here but I'm too scared
# to delete it
export LD_LIBRARY_PATH=/usr/lib:$LD_LIBRARY_PATH
# Texmf home: hidden directory
export TEXMFHOME=$HOME/.texmf
# My git directory: where I want to clone all my repos
export GCLONE_PATH=~/git