zsh: Move environment variables to zshenv

This commit is contained in:
Simon Bruder 2020-08-21 18:46:56 +02:00
parent 050cfcaffe
commit a8c8b0b6e2
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F
2 changed files with 13 additions and 21 deletions

13
home/.zshenv Normal file
View file

@ -0,0 +1,13 @@
GOPATH="$HOME/go"
path=(
~/bin
~/.local/bin
$path
~/.cargo/bin
$GOPATH/bin
)
# Force antialiasing in java
export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=on"
export EDITOR=nvim

View file

@ -1,20 +1,3 @@
# Programming languages
## Go
export GOPATH="$HOME/go"
export PATH="$PATH:$GOPATH/bin"
## Python (pip)
export PATH="$HOME/.local/bin:$PATH"
## Rust (cargo)
export PATH="$HOME/.cargo/bin:$PATH"
# Misc
## Local binaries
export PATH="$HOME/bin:$PATH"
# Program aliases/env
## Aliases for programs
@ -33,10 +16,6 @@ alias userctl="systemctl --user"
## Debian packages fd as fdfind
command -v fdfind >/dev/null && alias fd="fdfind"
## Environment variables
export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=on" # force antialiasing in java
export EDITOR=nvim
## include docker functions
source ~/.zshrc.docker