美文网首页
OhMyZsh的安装(包括语法高亮软件)

OhMyZsh的安装(包括语法高亮软件)

作者: 满哥的在线世界树 | 来源:发表于2020-03-11 01:17 被阅读0次

1. 查看系统已经安装的shells,通常默认是bash   

cat /etc/shells

2. 安装zsh

pacman -S zsh

3. 安装git/curl/wget   

pacman -S git wget curl

4. 使用官方安装脚本   

sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

5. 切换默认的shell(非root只能改自己的)   

chsh -s /bin/zsh username  or csh -s `echo $SHELL` username

6. 语法高亮插件:

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

7. 修改zsh配置文件 vim ~/.zshrc

plugins=(git zsh-syntax-highlighting)

8.刷新配置文件

source ~/.zshrc

9.增加别名等

alias cls='clear'

alias la ='ls -al --color=auto'

相关文章

网友评论

      本文标题:OhMyZsh的安装(包括语法高亮软件)

      本文链接:https://www.haomeiwen.com/subject/vrjadhtx.html