-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
68 lines (54 loc) · 1.42 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
source ~/.aliases
source ~/.functions
source ~/.exports
source ~/.path
fpath+=($HOME/zsh/pure)
HISTFILE=$HOME/.zhistory
SAVEHIST=1000
HISTSIZE=999
HISTDUP=erase
setopt share_history
setopt hist_ignore_space
setopt hist_ignore_dups
setopt hist_ignore_all_dups
setopt hist_expire_dups_first
setopt hist_save_no_dups
setopt hist_find_no_dups
setopt hist_verify
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
bindkey "^[[A" history-search-backward
bindkey "^[[B" history-search-forward
bindkey "^[[1;5C" forward-word
bindkey "^[[1;5D" backward-word
autoload -U promptinit; promptinit
prompt pure
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source <(fzf --zsh)
bindkey -r "^[c"
autoload -Uz compinit
# fnm
FNM_PATH="/home/simon/.local/share/fnm"
if [ -d "$FNM_PATH" ]; then
export PATH="/home/simon/.local/share/fnm:$PATH"
eval "`fnm env`"
fi
# pnpm
export PNPM_HOME="/home/simon/.local/share/pnpm"
case ":$PATH:" in
*":$PNPM_HOME:"*) ;;
*) export PATH="$PNPM_HOME:$PATH" ;;
esac
# pnpm end
# bun completions
[ -s "/home/simon/.bun/_bun" ] && source "/home/simon/.bun/_bun"
# bun
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"
# fnm
FNM_PATH="/home/simon/.local/share/fnm"
if [ -d "$FNM_PATH" ]; then
export PATH="/home/simon/.local/share/fnm:$PATH"
eval "`fnm env`"
fi