-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
83 lines (70 loc) · 2.1 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:$PATH
# https://github.com/z-shell/zi
# Enable Zi
typeset -A ZI
ZI[BIN_DIR]="${HOME}/.zi/bin"
source "${ZI[BIN_DIR]}/zi.zsh"
# Enable Zi completions
autoload -Uz _zi
(( ${+_comps} )) && _comps[zi]=_zi
# Zi Linter
zi light z-shell/zui
zi light z-shell/zsh-lint
# History Search Multi Word
zi load z-shell/H-S-MW
# Feature-rich Syntax Highlighting And Autosuggestions
zi light zsh-users/zsh-syntax-highlighting
zi light zsh-users/zsh-autosuggestions
# Packages
zi pack"binary" for fzf
#zi pack for nb
#zi pack for ls_colors
#zi pack for dircolors-material
#zi pack for system-completions
#zi pack for zsh
# Zi Theme
zi light spaceship-prompt/spaceship-prompt
SPACESHIP_PROMPT_ASYNC=false
# User configuration
export MANPATH="/usr/local/man:$MANPATH"
# You may need to manually set your language environment
export LANG=zh_CN.UTF-8
export LANGUAGE=zh_CN:en_US
# Preferred editor for local and remote sessions
if [[ -n $SSH_CONNECTION ]]; then
export EDITOR='vim'
else
export EDITOR='nvim'
fi
# Compilation flags
export ARCHFLAGS="-arch x86_64"
# Aliases
alias zshconfig="mate ~/.zshrc"
alias ohmyzsh="mate ~/.oh-my-zsh"
alias vi="nvim"
alias vim="nvim"
alias nvim-sync="nvim +'hi NormalFloat guibg=#1e222a' +NvChadUpdate +PackerSync"
# Envs
# autoenv
source $HOME/.autoenv/activate.sh
# autojump
[[ -s $HOME/.autojump/etc/profile.d/autojump.sh ]] && source $HOME/.autojump/etc/profile.d/autojump.sh
autoload -U compinit && compinit -u
# nvm
export NVM_DIR="$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
# golang
export GOROOT=/usr/local/go
export GOPATH=/home/i/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
# TinyTeX
export PATH=$PATH:$HOME/.TinyTeX/bin/x86_64-linux
# pyenv
#export PYENV_ROOT="$HOME/.pyenv"
#export PATH="$PYENV_ROOT/bin:$PATH"
#eval "$(pyenv init --path)"
# x11
#export DISPLAY=$(awk '/nameserver / {print $2; exit}' /etc/resolv.conf 2>/dev/null):0
#export LIBGL_ALWAYS_INDIRECT=1