Skip to content

Linux – 使用 ZSH

Tags:

安装zsh

# 安装 激活
apt -y install zsh git && chsh -s /usr/bin/zsh root && set -k # set -k == setopt interactivecomments
cat /etc/shells # 看看自己的机子上装了哪些shell
echo $SHELL 

step 2

GITSITE="github.com"
# github国内镜像
# GITSITE="hub.fastgit.org"
# GITSITE="gitclone.com"
git clone https://${GITSITE}/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh 
git clone https://${GITSITE}/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions 
git clone https://${GITSITE}/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting


# git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh 
# git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions 
# git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
# 安装重要插件 install oh-my-zsh

把本地的.zsh传过去

scp ~/.zshrc [email protected]:~/
# 如果带Port,就要用 -P (注意是大P)
scp -P 12345 ~/.zshrc [email protected]:~/

重新登录就好了。

Leave a Reply

Your email address will not be published.