-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdot_zprofile.tmpl
62 lines (48 loc) · 1.4 KB
/
dot_zprofile.tmpl
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
export DOTFILES_HELPERS=$HOME/.dotfiles
{{ if eq .chezmoi.os "darwin" }}
export HOMEBREW_PREFIX="/opt/homebrew";
export HOMEBREW_CELLAR="/opt/homebrew/Cellar";
export HOMEBREW_REPOSITORY="/opt/homebrew";
PATH="$HOMEBREW_PREFIX/bin:$HOMEBREW_PREFIX/sbin:$PATH"
{{ end }}
# Give Maven plenty of memory
export MAVEN_OPTS='-Xms512m -Xmx1024m'
# Highlight section titles in manual pages
export LESS_TERMCAP_md="$fg[yellow]"
# Don’t clear the screen after quitting a manual page
export MANPAGER="less -X"
# Prefer US English and use UTF-8
export LANG="en_US.UTF-8"
export LC_ALL="en_US.UTF-8"
{{ if eq .chezmoi.os "darwin" }}
export EDITOR="zed"
{{ else }}
export EDITOR="codium"
{{ end }}
export PAGER="less -R"
# Python
export PIP_REQUIRE_VIRTUALENV=true
# I make my own promts
export VIRTUAL_ENV_DISABLE_PROMPT=1
# Go
export GOPATH=~/go
export GOBIN=$GOPATH/bin
export PATH="$GOBIN:$PATH"
# Java
{{ if eq .chezmoi.os "darwin" }}
export JAVA_HOME="$(/usr/libexec/java_home)"
{{ else }}
export JAVA_HOME=$(dirname $(dirname $(update-alternatives --query java | grep Best | cut -d " " -f 2)))
{{ end }}
# Sublime
{{ if eq .chezmoi.os "darwin" }}
PATH="/Applications/Sublime Text.app/Contents/SharedSupport/bin:$PATH"
{{ end }}
# More PATH stuff
PATH="$HOME/bin:$HOME/.cargo/bin:$PATH"
export PATH
# pyenv
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
export DOCKER_BUILDKIT=1
export COMPOSE_DOCKER_CLI_BUILD=1