-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc.bak
79 lines (66 loc) · 2.52 KB
/
.zshrc.bak
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
export HOME=/Users/yaoyhu
export PATH=$HOME/bin:/usr/local/bin:$PATH
export ZSH="$HOME/.oh-my-zsh"
export VCPKG_ROOT="$HOME/opt/vcpkg"
# ZSH_THEME="robbyrussell"
ZSH_THEME=""
zstyle ':omz:update' mode reminder # just remind me to update when it's time
plugins=(
zsh-autosuggestions
zsh-vi-mode
zsh-syntax-highlighting
)
# plugins need to be added before oh-my-zsh.sh is sourced.
source $ZSH/oh-my-zsh.sh
export LANG=en_US.UTF-8
export EDITOR='vim'
export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890
# test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
# alias clang++="clang++ -std=c++11 -Wall -Werror"
alias cat="bat"
alias ra="ranger"
alias python="/opt/homebrew/bin/python3.11"
alias vi="vim"
eval $(thefuck --alias)
eval "$(lua /Users/yaoyhu/.oh-my-zsh/plugins/z.lua/z.lua --init zsh)"
alias saver="open /System/Library/CoreServices/ScreenSaverEngine.app"
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/Users/yaoyhu/opt/miniconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/Users/yaoyhu/opt/miniconda3/etc/profile.d/conda.sh" ]; then
. "/Users/yaoyhu/opt/miniconda3/etc/profile.d/conda.sh"
else
export PATH="/Users/yaoyhu/opt/miniconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<
export PATH="/opt/homebrew/opt/node@20/bin:$PATH"
# export PATH="/opt/homebrew/opt/binutils/bin:$PATH"
export PATH="/opt/homebrew/Cellar/riscv-pk/main/riscv64-unknown-elf/bin:$PATH"
export PATH="/opt/homebrew/Cellar/x86_64-unknown-linux-gnu/13.2.0/bin:$PATH"
export PATH="/opt/homebrew/Cellar/riscv-gnu-toolchain/main/bin:$PATH"
export PATH="/opt/homebrew/Cellar/qemu/9.1.0/bin:$PATH"
export PATH="/opt/homebrew/Cellar/riscv64-elf-gdb/15.1/bin:$PATH"
export CLASSPATH="~/opt/algs4.jar"
export fzf_default_command='fd'
eval "$(fzf --zsh)"
autoload bashcompinit
bashcompinit
source /Users/yaoyhu/opt/vcpkg/scripts/vcpkg_completion.zsh
# export PATH="/opt/homebrew/opt/llvm/bin:$PATH"
# export LDFLAGS="-L/opt/homebrew/opt/llvm/lib"
# export CPPFLAGS="-I/opt/homebrew/opt/llvm/include"
export HOMEBREW_NO_AUTO_UPDATE=1
# [ ! -f "$HOME/.x-cmd.root/X" ] || . "$HOME/.x-cmd.root/X" # boot up x-cmd.
autoload -U promptinit; promptinit
prompt pure
prompt_newline='%666v'
# PURE_PROMPT_SYMBOL='>'
PROMPT=" $PROMPT"
print() {
[ 0 -eq $# -a "prompt_pure_precmd" = "${funcstack[-1]}" ] || builtin print "$@";
}