-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
99 lines (82 loc) · 2.12 KB
/
.zshrc
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# .ZSHRC
# Variables
export EDITOR="nvim"
export VISUAL="nvim"
export PAGER="bat"
export BAT_THEME="Coldark-Dark"
export LANG="en_US.UTF-8"
export LC_ALL="en_US.UTF-8"
export TERMINAL="alacritty"
export BROWSER="firefox-nightly"
export SCRIPT_PATH="$HOME/Code/scripts"
export STARSHIP_CONFIG="$HOME/dotfiles/.starship.toml"
export GOPATH="$HOME/go"
export PNPM_HOME="$HOME/Library/pnpm"
export PYTORCH_ENABLE_MPS_FALLBACK=1
export PYTORCH_MPS_HIGH_WATERMARK_RATIO=0.0
export OLLAMA_MODEL='codestral'
export FAST_OLLAMA_MODEL='llama3.1'
export WRITING_OLLAMA_MODEL='gemma2:27b'
export LS_COLORS="di=38;5;130:ln=36:so=32:pi=33:ex=31:bd=35:cd=34:su=31:sg=36:tw=32:ow=33"
# PyEnv
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init --path)"
eval "$(pyenv init -)"
# Set PATH
typeset -U path
path=(
/opt/homebrew/bin
/usr/local/bin
/usr/bin
/bin
/usr/sbin
/sbin
$PNPM_HOME
$HOME/.nvm/versions/node/v21.6.0/bin
/Library/Frameworks/Python.framework/Versions/3.11/bin
/usr/local/go/bin
$HOME/.cargo/bin
$HOME/.local/bin
$GOPATH/bin
$HOME/Library/Python/3.11/bin
/usr/local/llamafile/bin
$HOME/llamafile/bin
$SCRIPT_PATH
$PYENV_ROOT/bin
$path
)
# Load colors
autoload -U colors && colors
# History in cache directory
HISTSIZE=10000
SAVEHIST=10000
HISTFILE="$HOME/.cache/zsh/history"
# Basic auto/tab complete
autoload -U compinit
zstyle ':completion:*' menu select
zmodload zsh/complist
compinit
_comp_options+=(globdots) # Include hidden files.
# Load custom functions
source ~/.zsh/functions.zsh
# Load custom aliases
source ~/.zsh/aliases.zsh
# Load custom secrets
source ~/.zsh/secrets.zsh
# Load Atuin
eval "$(atuin init zsh)"
# Load fzf
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# Load Cargo
. "$HOME/.cargo/env"
# Load Homebrew
eval "$(/opt/homebrew/bin/brew shellenv)"
# Load Starship prompt
eval "$(starship init zsh)"
# Load zoxide
eval "$(zoxide init zsh)"
# Load zsh-autosuggestions
source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh
# Load zsh-syntax-highlighting (should be last)
source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh