-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_profile.tmpl
More file actions
73 lines (59 loc) · 2.44 KB
/
dot_profile.tmpl
File metadata and controls
73 lines (59 loc) · 2.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# vim: set filetype=bash:
# shellcheck disable=all
# Sourced by bash (from ~/.bash_profile), zsh (from ~/.zprofile), and the GDM.
{{if eq .chezmoi.osRelease.id "manjaro"}}
if [ -f "/etc/profile.d/locale.sh" ]; then
unset LANG
source /etc/profile.d/locale.sh
fi
{{end}}
export NOTES_DIR="$HOME/notes" # Obsidian vault with all my current note
export DOCUMENTS_DIR="$HOME/doc" # Other documents (legacy and non-Markdown)
export PROJECTS_DIR="$HOME/projects"
# Used by bash and zsh for easier path navigation.
export CDPATH=$PROJECTS_DIR:$DOCUMENTS_DIR/business:$DOCUMENTS_DIR/domestic
# time command format
export TIMEFMT=$'\nelapsed time: %*E\nmax memory: %MKB\ncpu: %P'
# Don't use Git repo in $HOME unless it's the current working directory.
export GIT_CEILING_DIRECTORIES="$HOME"
# SJR: 10-Oct-2023: GnuCash data and config directories.
export GNC_DATA_HOME="$DOCUMENTS_DIR/business/accounting/gnucash5/.local/share/gnucash"
export GNC_CONFIG_HOME="$DOCUMENTS_DIR/business/accounting/gnucash5/.config/gnucash"
export RECOLL_CONFDIR="$HOME/.config/recoll"
# Build the PATH env variable in descending priority order.
# NOTE: NixOS updates this PATH and does not seem to preserve priorities.
if [ -d "$HOME/.cargo/bin" ]; then # Rust cargo compiled binaries
export PATH=$PATH:$HOME/.cargo/bin
fi
if [ -d "$HOME/.deno/bin" ]; then # Deno runtime
export PATH=$PATH:$HOME/.deno/bin
fi
if [ -d "$HOME/go" ]; then # Go language (add GOROOT and GOPATH to PATH)
export PATH=$PATH:$HOME/go/bin
fi
if [ -d "$HOME/.npm-packages/bin" ]; then # globally installed node packages
export PATH="$HOME/.npm-packages/bin:$PATH"
export NODE_PATH="$HOME/.npm-packages/lib/node_modules"
fi
if [ -d "$HOME/.local/bin" ]; then # Locally installed binaries
export PATH="$HOME/.local/bin:$PATH"
fi
export PATH="$HOME/bin:$HOME/share/bin:$PATH" # User's binaries
# Source Nix Package Manager if it's installed.
if [ -e $HOME/.nix-profile/etc/profile.d/nix.sh ]; then
. $HOME/.nix-profile/etc/profile.d/nix.sh
fi
# Use Brave instead of Chrome when doing Flutter Web development.
if which brave >/dev/null; then
export CHROME_EXECUTABLE=$(which brave)
fi
#
# Run custom login commands
#
# Export API keys
export OLLAMA_CLOUD_API_KEY="{{ .secrets.ollama_cloud_api_key }}"
export GEMINI_API_KEY="{{ .secrets.gemini_api_key }}"
export OPENROUTER_API_KEY="{{ .secrets.openrouter_api_key }}"
# Start ZeroClaw daemon and detach from terminal
zeroclaw daemon &
disown