-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.zshenv
More file actions
43 lines (36 loc) · 1.77 KB
/
.zshenv
File metadata and controls
43 lines (36 loc) · 1.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Useful resource on what should/shouldn't go in each of [.zshrc, .zshenv, .zprofile]
# https://unix.stackexchange.com/questions/71253/what-should-shouldnt-go-in-zshenv-zshrc-zlogin-zprofile-zlogout
# NO ALIASES!
####### PATH changes #######
# If doing so would require logic logic that would slow down startup,
# do it in .zprofile instead
PATH="$HOME/Sys/builds/j-language/bin:$PATH"
export PATH
####### Compilation flags #######
# export ARCHFLAGS="-arch x86_64"
# TODO remove this it's probably causing problems
# But ig I should make an alias which sets it so I can use it when needed
export CPLUS_INCLUDE_PATH='/usr/include/c++/11:/usr/include/x86_64-linux-gnu/c++/11' # Lets me use clangd lsp on one-off files w/o compile_commands.json
####### Configurations for utilities ######
# https://zsh.sourceforge.io/Doc/Release/Parameters.html
TIMEFMT=$'\n================\nCPU\t%P\nuser\t%*U\nsystem\t%*S\ntotal\t%*E\nmax rss\t%MKB'
# Make less give us some headroom on search results
# also a few other things
LESS='-iMXj4'
####### Load language environments #####
[ -f "$HOME/.ghcup/env" ] && . "$HOME/.ghcup/env" # ghcup-env
[ -f "$HOME/.cargo/env" ] && . "$HOME/.cargo/env"
[ -d /opt/homebrew/share/zsh/site-functions ] && fpath+=(/opt/homebrew/share/zsh/site-functions)
####### Set other envvars ######
# Other environment variables
export LANG=en_US.UTF-8 # set correct code page, very important
if [ -d ~/Sys/dotfiles ]; then
export DOTFILE_HOME=~/Sys/dotfiles
elif [ -d ~/Sys/dotfiles ]; then
export DOTFILE_HOME=~/dotfiles
else
echo "error: .zshenv: no DOTFILE_HOME found"
export DOTFILE_HOME=~/dotfiles
fi
export DOCKER_HOST=unix:///run/user/$(id -u)/podman/podman.sock
#export MANPATH="/usr/local/man:$MANPATH" # TODO is this necessary?