[zsh] move PATH to zshenv
This commit is contained in:
parent
1ace054834
commit
5c21f8ef8a
2 changed files with 20 additions and 16 deletions
|
@ -4,11 +4,31 @@ TRAPUSR1() {
|
|||
exec "${SHELL}"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
# Add exports
|
||||
if [[ $(uname) == "Darwin" ]]; then
|
||||
#ONLY MACOS
|
||||
export JAVA_HOME="/opt/homebrew/opt/openjdk@17/libexec/openjdk.jdk/Contents/Home"
|
||||
export PATH="/opt/homebrew/bin:$PATH"
|
||||
export PATH="/opt/homebrew/opt/openjdk@17/bin:$PATH"
|
||||
export PATH="/opt/homebrew/opt/texlive/bin:$PATH"
|
||||
else
|
||||
#ONLY LINUX
|
||||
export LIBVA_DRIVER_NAME=nvidia
|
||||
fi
|
||||
|
||||
|
||||
#BOTH
|
||||
export PATH="/usr/sbin:/sbin:$PATH"
|
||||
export PATH="$HOME/.local/share/nvim/mason/bin:$PATH"
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
export PATH="$HOME/go/bin:$PATH"
|
||||
export PATH="$HOME/.cargo/bin:$PATH"
|
||||
export PATH="$HOME/.ghcup/bin:$PATH"
|
||||
export PATH="$HOME/.miniforge3/bin:$PATH"
|
||||
export PATH="$HOME/.cabal/bin:$PATH"
|
||||
|
||||
export XDG_CONFIG_HOME="${HOME}/.config"
|
||||
export XDG_CACHE_HOME="${HOME}/.cache"
|
||||
export XDG_DATA_HOME="${HOME}/.local/share"
|
||||
|
|
|
@ -1,19 +1,3 @@
|
|||
# Add paths
|
||||
export PATH="/usr/sbin:/sbin:$PATH"
|
||||
export PATH="$HOME/.local/share/nvim/mason/bin:$PATH"
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
export PATH="$HOME/go/bin:$PATH"
|
||||
export PATH="$HOME/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin:$PATH"
|
||||
export PATH="$HOME/.cargo/bin:$PATH"
|
||||
export PATH="$HOME/.ghcup/bin:$PATH"
|
||||
export PATH="$HOME/.miniforge3/bin:$PATH"
|
||||
export PATH="$HOME/.cabal/bin:$PATH"
|
||||
export GOPATH=$HOME/.go
|
||||
export PATH=$PATH:$GOPATH/bin
|
||||
export PATH="/opt/homebrew/bin:$PATH"
|
||||
export PATH="/opt/homebrew/opt/openjdk@17/bin:$PATH"
|
||||
export PATH="/opt/homebrew/opt/texlive/bin:$PATH"
|
||||
|
||||
# Setup History
|
||||
HISTFILE=${ZDOTDIR:-$HOME}/.zsh_history
|
||||
HISTSIZE=100000000
|
||||
|
|
Loading…
Reference in a new issue