-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshrc
29 lines (21 loc) · 874 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
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
export ZSH="$HOME/.oh-my-zsh"
plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
fpath+=${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/zsh-completions/src
source $ZSH/oh-my-zsh.sh
export PATH="$HOME/.jenv/bin:$PATH"
eval "$(jenv init -)"
# nvm
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
alias v=nvim
alias vi=nvim
alias vim=nvim
alias lg=lazygit
alias cl=clear
# proxy
alias pxy="export ALL_PROXY=http://localhost:7890"
alias unpxy="unset ALL_PROXY"
eval "$(starship init zsh)"