备份

防止环境再坏了

 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
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)

source $ZSH/oh-my-zsh.sh

export ScEnvironment=test
export ScRegisterEureka=false

export GOPATH=/Users/pengxiaochao/02codes/01Go/src
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 CLASS_PATH=$JAVA_HOME/lib
export PATH=/Users/pengxiaochao/sdk/go1.17.3/bin:$PATH

[ -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 i="idea pom.xml"

#export ZPLUG_HOME=/usr/local/opt/zplug
#source $ZPLUG_HOME/init.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


# >>> 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 <<<

brew安装备份

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
brew install zssh
brew install the_silver_searcher
brew install autojump
brew install zsh-syntax-highlighting
brew install zplug
brew install pip
brew install android-platform-tools
brew install lrzsz
brew install wget
brew install rsync
brew install hugo

git clone --depth=1 https://gitee.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k

ZSH_THEME="powerlevel10k/powerlevel10k"
p10k configure