-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
30 lines (22 loc) · 902 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
zmodload zsh/zprof
# Run zprof later to profile
# Required for showing git branch in prompt
setopt prompt_subst
PROMPT='%1~ $(git_branch) $ '
# `brew install zsh-autosuggestions` first
source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh
# git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions
# source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
# auto completion for git-extras
# source $(brew --prefix)/opt/git-extras/share/git-extras/git-extras-completion.zsh
# for quick path jumping using z. `brew install z` first
# . /usr/local/etc/profile.d/z.sh
# auto switch node versions based on .nvmrc
eval "$(fnm env --use-on-cd)"
# source aliases and functions
source ~/Documents/dotfiles/.zsh-aliases
source ~/Documents/dotfiles/.zsh-functions
# pnpm
export PNPM_HOME="/Users/arbatra/Library/pnpm"
export PATH="$PNPM_HOME:$PATH"
# pnpm end