-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
64 lines (48 loc) · 1.57 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
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/home/long/.oh-my-zsh"
# zsh
ZSH_DISABLE_COMPFIX=true
# theme
ZSH_THEME="agnoster"
# plugins
plugins=(git autojump colorize extract cmdtime)
source $ZSH/oh-my-zsh.sh
# 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
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# pyenv
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init --path)"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
# alias
alias vi="nvim"
alias vim="nvim"
alias codeql="/home/long/codeql-linux64/codeql/codeql"
alias gitclean="git br | grep long | xargs -I {} git br -D {}"
export AZURE_DEVOPS_EXT_PAT=krmrqnutniqvewqd7gsoxrpgihhrrrgs5z6drpfxysq36tuk6xua
eval `dircolors ~/.dircolors`
# system editor
export VISUAL=vim
export EDITOR="$VISUAL"
prompt_context() {
if [[ "$USER" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then
prompt_segment black default "%(!.%{%F{yellow}%}.)(╬ Ò ‸ Ó)"
fi
}
[[ -s "/home/long/.gvm/scripts/gvm" ]] && source "/home/long/.gvm/scripts/gvm"
# pnpm
export PNPM_HOME="/home/long/.local/share/pnpm"
export PATH="$PNPM_HOME:$PATH"
# pnpm end
# lvim
export PATH="/home/long/.local/bin:$PATH"
# lvim end
# deno
export DENO_INSTALL="/home/long/.deno"
export PATH="$DENO_INSTALL/bin:$PATH"
# deno end