首页 > 资讯 > iterm2+zsh命令自动补全

iterm2+zsh命令自动补全

iterm2

下载

地址: https://iterm2.com/

设置为默认terminal

title

设置默认Shell

1
2
3
4
5
6
7
8

#查看系统安装的所有Shell
cat /etc/Shells

#修改默认Shell为zsh
chsh -s /bin/zsh

#查看当前使用的Shell
echo $Shell

SHELL

zsh命令自动补全插件

安装

1

git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions

SHELL

配置

1
2
3
4
5
6
7
8
9
10

#编辑配置文件
vim ~/.zshrc

#找到plugins配置,在括号内增加zsh-autosuggestions,与其他插件之间使用空格分隔开
plugins=(git zsh-autosuggestions)
source ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
source ~/.bash_profile # source一下其他环境变量

#退出编辑后执行使配置生效
source ~/.zshrc

SHELL

效果

title

相关知识

揭秘 冬令进补勿忘“四戒”
冬令进补从何开始?
看好时令巧补中益气
补肾阳 男人冬令进补之关键
舞动生命,健康自我
杭州减肥夏令营,具体情况看这里「乐淘冬夏令营」
补肽=补生命,细胞健康=人体健康!
新手魔域服务器gm命令和部分游戏内物品代码分享
全生命周期守护骨骼健康及行动力
小雪节气养生 冬令进补的温补益肾食物

网址: iterm2+zsh命令自动补全 https://m.trfsz.com/newsview905416.html