-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zprofile
63 lines (53 loc) · 2.57 KB
/
.zprofile
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
63
# private env variables
source ~/.dotfiles-private/variables.sh
# Set PATH, MANPATH, etc., for Homebrew.
eval "$(/opt/homebrew/bin/brew shellenv)"
if command -v pyenv 1>/dev/null 2>&1; then
eval "$(pyenv init -)"
fi
# Pyenv data storage location
export PYENV_ROOT="$HOME/.pyenv"
# Carp directory
export CARP_DIR="$HOME/Carp"
# JAVA version madness
# Note: rename (in <jvm-path>/Contents/) 'Info.plist.disabled' back to 'Info.plist'
# to re-enable graalvm Java versions
# see https://stackoverflow.com/questions/21964709/how-to-set-or-change-the-default-java-jdk-version-on-macos
export JVMPATH="/Library/Java/JavaVirtualMachines"
export GRAALVM_17_HOME="$JVMPATH/graalvm-ce-java17-22.0.0.2/Contents/Home"
export GRAALVM_GLUON_17_HOME="$JVMPATH/graalvm-svm-java17-darwin-gluon-22.0.0.3-Final/Contents/Home"
export TEMURIN_8_HOME="$JVMPATH/temurin-8.jdk/Contents/Home"
export TEMURIN_11_HOME="$JVMPATH/temurin-11.jdk/Contents/Home"
export TEMURIN_17_HOME="$JVMPATH/temurin-17.jdk/Contents/Home"
export TEMURIN_18_HOME="$JVMPATH/temurin-18.jdk/Contents/Home"
# export TEMURIN_20_HOME="$JVMPATH/temurin-20.jdk/Contents/Home"
export TEMURIN_21_HOME="$JVMPATH/temurin-21.jdk/Contents/Home"
export TEMURIN_23_HOME="$JVMPATH/temurin-23.jdk/Contents/Home"
# export OPENJDK_11_HOME="$JVMPATH/openjdk-11.jdk/Contents/Home"
# export OPENJDK_17_HOME="$JVMPATH/openjdk-17.jdk/Contents/Home"
# export OPENJDK_18_HOME="$JVMPATH/openjdk.jdk/Contents/Home"
export JAVA_HOME="$TEMURIN_21_HOME"
# Guile paths (for Scheme)
export GUILE_LOAD_PATH="/usr/local/share/guile/site/3.0"
export GUILE_LOAD_COMPILED_PATH="/usr/local/lib/guile/3.0/site-ccache"
export GUILE_SYSTEM_EXTENSIONS_PATH="/usr/local/lib/guile/3.0/extensions"
# PATH
PATH="$PATH:$HOME/.local/bin"
PATH="$PATH:$HOME/.babashka/bbin/bin"
PATH="$PATH:$HOME/.local/share/nvim/plugged/vim-iced/bin"
PATH="$PATH:$HOME/.emacs.d.doom/bin"
PATH="$PATH:$HOME/.emacs.d/bin"
PATH="$PATH:/opt/homebrew/opt/luajit-openresty/bin"
PATH="$PATH:$JAVA_HOME/bin"
PATH="$PATH:$HOME/Library/Application Support/Coursier/bin" # for Scala
PATH="$PATH:$HOME/.dotfiles/scripts/bin"
PATH="$PATH:$HOME/.roswell/bin"
PATH="$PATH:/opt/homebrew/Cellar/janet/1.35.2/bin/"
# Opam configuration (for OCaml)
# test -r ~/.opam/opam-init/init.zsh && . ~/.opam/opam-init/init.zsh > /dev/null 2> /dev/null || true
if type rg &> /dev/null; then
export FZF_DEFAULT_COMMAND='rg --files --no-require-git'
# export FZF_DEFAULT_COMMAND='rg --files --follow --no-ignore-vcs --hidden -g "!{node_modules/*,.git/*}"'
export FZF_DEFAULT_OPTS='-m --height 50% --border'
fi
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh