-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
38 lines (29 loc) · 786 Bytes
/
.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
if type brew &>/dev/null
then
FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}"
autoload -Uz compinit
zstyle ':completion:*' menu select
zmodload zsh/complist
compinit
_comp_options+=(globdots)
fi
# History file for zsh
HISTFILE=~/.cache/zsh/history
# How many commands to store in history
HISTSIZE=10000
SAVEHIST=10000
# 1: Share history in every terminal session
# 2: Do not save duplicate commands to history
setopt SHARE_HISTORY #1
setopt HIST_IGNORE_ALL_DUPS #2
# Vi mdoe:
bindkey -v
export KEYTIMEOUT=1
# NVM
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
eval "$(starship init zsh)"
# Set up fzf key bindings and fuzzy completion
eval "$(fzf --zsh)"
export VOLTA_HOME="$HOME/.volta"
export PATH="$VOLTA_HOME/bin:$PATH"