This commit is contained in:
H
2021-08-28 03:58:36 +08:00
parent 8d53fa2c93
commit ade2eaee16
3 changed files with 23 additions and 3 deletions

View File

@@ -0,0 +1,4 @@
zsh config
安装zsh、 oh-my-zsh、zinit和zsh配置文件中的 brew 、fuck等

View File

@@ -1,16 +1,32 @@
## oh_my_zsh install
if [ -d ~/.oh-my-zsh ];then
echo "you have installed oh_my_zsh"
else
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
fi
sh -c "$(curl -fsSL https://raw.githubusercontent.com/zdharma/zinit/master/doc/install.sh)"
if [-f ~/.zshrc.old];then
## zinit install
if [ -d ~/.zinit ];then
echo "you have install zinit"
else
sh -c "$(curl -fsSL https://raw.githubusercontent.com/zdharma/zinit/master/doc/install.sh)"
fi
## backup old zshrc
if [ -f ~/.zshrc.old ];then
echo "you have zshrc.old"
else
mv ~/.zshrc ~/.zshrc.old
cp ./zshrc ~/.zshrc
fi
if [ -d /home/linuxbrew/ ];then
echo "you have install brew"
else
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
source ~/.zshrc
zinit update

View File

@@ -167,7 +167,7 @@ alias googler='googler --proxy 127.0.0.1:8889'
#autoload -U +X bashcompinit && bashcompinit
#complete -o nospace -C /usr/local/bin/bit bit
eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib=$HOME/perl5)"
#eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib=$HOME/perl5)"
### Added by Zinit's installer
if [[ ! -f $HOME/.zinit/bin/zinit.zsh ]]; then