zsh 配置

版权声明:wywwzjj https://blog.csdn.net/weixin_42348709/article/details/83479818
echo $SHELL			  	查看当前shell环境
cat /etc/shells		  	查看系统已有哪些shell
sudo apt install zsh  	安装zsh
chsh -s $(which zsh)  	将默认shell改为zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh			            安装oh-my-zsh
~/.oh-my-zsh/themes		已有主题目录(最爱:agnoster)
~/.oh-my-zsh/pluglins   已有插件目录,如果自己下载的话,clone到这个目录
source ~/.zshrc			刷新配置文件

常用插件:

z, rails, git, colored-man-pages
zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting  注意clone到plugins目录
zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions

小技巧:
用 /  代替 cd /
用 .. 代替 cd ..
用 …. 代替 cd ../..
用 ~  代替 cd ~
take fold_name: 建立fold_name的文件夹并且切换进去
x: 使用x代替tar bz2 gz zip等等一系列的命令

Powerline fonts

解决 zsh 乱码问题

git clone https://github.com/powerline/fonts.git
cd fonts
./install.sh

或者直接 sudo apt-get install fonts-powerline
然后重启终端,其他的啥也不用干

猜你喜欢

转载自blog.csdn.net/weixin_42348709/article/details/83479818
zsh
今日推荐