-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshenv
59 lines (49 loc) · 1.65 KB
/
zshenv
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
# Environment variables for ZSH
# !ln -s %:p ~/.zshenv
#
# This file is sourced in all ZSH instances, including every
# interactive and non-interactive shells.
# Load .zsh_private if it exists
if [[ -f ~/.zsh_private ]]; then
source ~/.zsh_private
fi
# Path to config files
export CONFIG_FILES="$HOME/Documents/mydocs/config_files"
# Set PATH
# `/usr/bin/vendor_perl`: biber
PATH="$PATH:/usr/bin/vendor_perl:$CONFIG_FILES/scripts:$HOME/Documents/mydocs/teaching/teaching_struct/teaching_utils:$HOME/.luarocks/bin:"
if [ -d /opt/cuda/bin ]; then
PATH="$PATH:/opt/cuda/bin"
fi
export PATH
# Set default editors for ZSH
# EDITOR is for programs that expect a line editor. VISUAL is for
# screen-oriented programs.
export EDITOR=/usr/bin/nvim
export VISUAL=/usr/bin/nvim
export ALTERNATE_EDITOR=vim
# Use `bat` as a pager for `man`
export MANPAGER="sh -c 'col -bx | bat -l man -p'"
export MANROFFOPT="-c"
# Git
export GIT_AUTHOR_NAME="mak-$(hostname)"
export GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME"
# AI models
export OPENAI_BASIC="gpt-4o-mini"
export OPENAI_ADVANCED="gpt-4o"
export OPENAI_REASON_MINI="o3-mini"
export OPENAI_REASON="o1-preview"
export PPLX_BASIC="sonar"
export PPLX_ADVANCED="sonar-pro"
export PPLX_REASON_BASIC="sonar-reasoning"
export PPLX_REASON_ADVANCED="sonar-reasoning-pro"
export ANTHROPIC_MODEL="claude-3-5-sonnet-latest"
# CUDA vars
if command -v nvcc >/dev/null 2>&1; then
export NVCC_PREPEND_FLAGS='-ccbin /opt/cuda/bin'
export LD_LIBRARY_PATH=/opt/cuda/lib64:$LD_LIBRARY_PATH
export CUDA_VISIBLE_DEVICES=0
fi
# ssh-agent socket
# The ssh-agent should have been started as a systemd user unit
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"