summaryrefslogtreecommitdiff
path: root/zsh/.zshenv
blob: cb36a13b2fff1b8ff28c9c2a58a043f6d53ac49b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
export EDITOR=nvim
export VISUAL=nvim

# Export PATH without repetitions
export -U PATH="$HOME/.local/bin${PATH:+:}$PATH"
export -U PATH="$HOME/.config/guix/current/bin${PATH:+:}$PATH"
export -U PATH="/usr/local/sbin${PATH:+:}$PATH"
export -U PATH="/usr/bin${PATH:+:}$PATH"
export -U PATH="/usr/local/sbin:/usr/local/bin${PATH:+:}$PATH"

# Necessary for fenics to work
export PYTHONPATH="/usr/lib/python3.7/site-packages/:/usr/lib/python3.8/site-packages/"

if [[ -d "$HOME/.gem/ruby" ]]; then
    export -U PATH=$(echo "$HOME/.gem/ruby/"*"/bin")"${PATH:+:}$PATH"
fi

# Python startup file
[[ -f "$HOME/.pythonrc" ]] && export PYTHONSTARTUP="$HOME/.pythonrc"

# Source guix profile
# guix_profile=$HOME/.guix-env
# [[ -f $guix_profile ]] && . $guix_profile