-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_bashrc.tmpl
More file actions
43 lines (36 loc) · 1.44 KB
/
Copy pathdot_bashrc.tmpl
File metadata and controls
43 lines (36 loc) · 1.44 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
{{ if eq .chezmoi.os "darwin" -}}
# Homebrew
eval "$(/opt/homebrew/bin/brew shellenv)"
{{ end -}}
# Add extra bin dirs to path
export PATH="$PATH:$HOME/.local/bin:$HOME/.pyenv/bin:/usr/local/go/bin:$HOME/.go/bin:$HOME/.cargo/bin"
# Set go path
export GOPATH=$HOME/.go
{{ if eq .chezmoi.os "linux" -}}
# JDK 17 for Expo/Gradle (hardcoded JAVA_HOME expectation). The android role
# uses JDK 21 internally for sdkmanager/avdmanager via inline per-task env.
export JAVA_HOME=/usr/lib/jvm/java-17-openjdk
export ANDROID_HOME="$HOME/.local/share/android-sdk"
export PATH="$PATH:$ANDROID_HOME/platform-tools:$ANDROID_HOME/cmdline-tools/latest/bin:$ANDROID_HOME/emulator"
{{ end -}}
# Doom Emacs CLI
export PATH="$HOME/.config/emacs/bin:$PATH"
# proto
export PROTO_HOME="$HOME/.proto"
export PATH="$PROTO_HOME/shims:$PROTO_HOME/bin:$PATH"
# bun
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"
# mise manages per-project tool versions. Keep this after legacy tool paths so
# its shims win when a project pins a specific Bun/Node/etc. version.
if command -v mise >/dev/null 2>&1; then
export MISE_TRUSTED_CONFIG_PATHS="${MISE_TRUSTED_CONFIG_PATHS:-/workspaces}"
export MISE_IDIOMATIC_VERSION_FILE_ENABLE_TOOLS="${MISE_IDIOMATIC_VERSION_FILE_ENABLE_TOOLS:-bun}"
if [ -n "${ZSH_VERSION:-}" ]; then
eval "$(mise activate zsh)"
else
eval "$(mise activate bash)"
fi
fi
# Use emacs as default editor
export EDITOR="emacsclient -c"