-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_zshrc
More file actions
52 lines (38 loc) · 1.25 KB
/
dot_zshrc
File metadata and controls
52 lines (38 loc) · 1.25 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
# === Dependencies ===
# chezmoi
export PATH="$HOME/.local/bin:$PATH"
# Editor
export EDITOR="code -w"
# pnpm
export PNPM_HOME="$HOME/Library/pnpm"
[[ ":$PATH:" != *":$PNPM_HOME:"* ]] && export PATH="$PNPM_HOME:$PATH"
# bun
[ -s "$HOME/.bun/_bun" ] && source "$HOME/.bun/_bun"
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"
# === Oh-My-Zsh ===
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="agnoster"
plugins=(git jump zoxide zsh-autosuggestions zsh-syntax-highlighting)
source $ZSH/oh-my-zsh.sh
DEFAULT_USER=`whoami`
prompt_dir() {
prompt_segment blue black '%1~'
}
# === ZSH Plugins (Homebrew) ===
# Source zsh-autosuggestions from Homebrew if available
if [ -f $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh ]; then
source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh
fi
# Source zsh-syntax-highlighting from Homebrew if available
if [ -f $(brew --prefix)/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ]; then
source $(brew --prefix)/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
fi
# === Aliases ===
alias lg="lazygit"
alias ll="eza -l --icons --git"
alias la="eza -la --icons --git"
alias mc="make checkpoint"
alias n="pnpm "
# === Zoxide ===
eval "$(zoxide init zsh)"