备份

防止环境再坏了

 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
# 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.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
  source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi


export ZSH="/Users/pengxiaochao/.oh-my-zsh"

#ZSH_THEME="robbyrussell"
ZSH_THEME="powerlevel10k/powerlevel10k"

plugins=(git git-open)

source $ZSH/oh-my-zsh.sh

export ScEnvironment=test
export ScRegisterEureka=false

export ScGroup=dev

export GOPATH=/Users/pengxiaochao/02codes/01Go
export PATH=/Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin:$PATH
export JAVA_HOME=/Library/Java/JavaVirtualMachines/zulu8_x64
export PATH=$JAVA_HOME/bin:$PATH
export PATH=/Applications/IntelliJ\ IDEA.app/Contents/MacOS:$PATH
export CLASS_PATH=$JAVA_HOME/lib
export PATH=/Users/pengxiaochao/install/maven/bin:$PATH
export PATH=$HOME/.cargo/bin:$PATH
export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles

[ -f /usr/local/etc/profile.d/autojump.sh ] && . /usr/local/etc/profile.d/autojump.sh

alias gay="git add . && git ci -m 'update' && git push"
alias gam='func() {git add .&&git commit -m "$1"&& git push;};func'
alias ge="git add . && git commit --amend --no-edit && git push -f"
alias i="idea pom.xml"
alias tc="tmux new -s"
alias ta="tmux attach -t"
alias nginx="openresty"
alias proxy="export http_proxy=\"http://127.0.0.1:1087\" && export https_proxy=\"http://127.0.0.1:1087\""
alias gu="export http_proxy=\"http://127.0.0.1:1087\" && export https_proxy=\"http://127.0.0.1:1087\"&&git pr"

sst(){ echo -e "\n\033[31;7m  $1  \e[0m\n"; ssh $1 -t "tmux -CC new -A -s main || /usr/local/bin/tmux -CC new -A -s main || bash " }
sed -n 's/Host //p' $HOME/.ssh/config | while read host ; do; alias ss$host="sst $host"; done

#export ZPLUG_HOME=/usr/local/opt/zplug
#source $ZPLUG_HOME/init.zsh

# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh

typeset -g POWERLEVEL9K_INSTANT_PROMPT=quiet
source /Users/pengxiaochao/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh
eval "$(mcfly init zsh)"

# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/Users/pengxiaochao/miniforge3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
    eval "$__conda_setup"
else
    if [ -f "/Users/pengxiaochao/miniforge3/etc/profile.d/conda.sh" ]; then
        . "/Users/pengxiaochao/miniforge3/etc/profile.d/conda.sh"
    else
        export PATH="/Users/pengxiaochao/miniforge3/bin:$PATH"
    fi
fi
unset __conda_setup
# <<< conda initialize <<<

export GPG_TTY=$(tty)

test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"

# eval "$(lua /Users/pengxiaochao/02codes/z.lua/z.lua  --init zsh)"

eval "$(atuin init zsh)"