-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
81 lines (63 loc) · 1.64 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
###########
### Zsh ###
###########
### Settings ###
bindkey -v
#autoload -Uz compinit && compinit
### History ###
HISTFILE="$XDG_CACHE_HOME/zsh/history"
HISTSIZE=1000
SAVEHIST=1000
### VCS Info ###
autoload -Uz vcs_info
precmd() {
vcs_info
}
setopt prompt_subst
zstyle ':vcs_info:*' enable git
zstyle ':vcs_info:*' unstagedstr '%F{9} ●%f'
zstyle ':vcs_info:*' stagedstr '%F{222} ●%f'
zstyle ':vcs_info:*' check-for-changes true
zstyle ':vcs_info:git:*' formats '%m%u%c %F{green} %b%f'
### Prompt ###
PROMPT='%F{blue}%~%f${vcs_info_msg_0_} %F{11}>%f '
#################
### Languages ###
#################
### Go ###
export GOPATH="$XDG_LOCAL_HOME/go"
export PATH="$GOPATH/bin":$PATH
### Rust ###
export RUSTUP_HOME="$XDG_LOCAL_HOME/rustup"
export CARGO_HOME="$XDG_LOCAL_HOME/cargo"
export PATH="$CARGO_HOME/bin:$PATH"
### Zig ###
export PATH="$XDG_LOCAL_HOME/zig:$PATH"
export PATH="$XDG_LOCAL_HOME/zls:$PATH"
export PATH="/usr/local/opt/llvm/bin:$PATH"
### NPM ###
export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npm/npmrc"
export PATH="$XDG_LOCAL_HOME/npm/bin:$PATH"
### OCAML ###
export OPAMROOT="$XDG_DATA_HOME/opam"
### Bun ###
export BUN_INSTALL="$XDG_DATA_HOME/bun"
export PATH="$BUN_INSTALL/bin:$PATH"
export GPG_TTY=$(tty)
export PATH="/usr/local/opt/postgresql@17/bin:$PATH"
export HELIX_RUNTIME=~/Projects/rust/helix/runtime
###############
### Aliases ###
###############
alias cd='z'
alias zvim="nvim $HOME/.zshrc"
alias zsrc="source $HOME/.zshrc"
alias ls='eza'
# Load zoxide
eval "$(zoxide init zsh)"
# Load fzf
# source <(fzf --zsh)
# # Load fnm
# eval "$(fnm env --use-on-cd --shell zsh)"
# # Load direnv
eval "$(direnv hook zsh)"