mac iterm2配置

1. 下载zsh

先查看是不是下载过zsh

zsh --version

如果没有则

brew install zsh
# 将zsh设置为默认
chsh -s /usr/local/bin/zsh

2. 下载iterm2

https://iterm2.com/

在这里插入图片描述

3. 安装oh-my-zsh

export REMOTE=https://gitee.com/imirror/ohmyzsh.git
sh -c "$(curl -fsSL https://cdn.jsdelivr.net/gh/ohmyzsh/ohmyzsh/tools/install.sh)"

# 插件:语法补全、语法高亮
git clone https://gitee.com/imirror/zsh-autosuggestions.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://gitee.com/imirror/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

vim打开~/.zshrc找到plugins改为下面

plugins=(git zsh-autosuggestions zsh-syntax-highlighting)

使设置生效

source ~/.zshrc

4. 显示工作目录绝对路径

PROMPT+=' %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)'
改为
PROMPT+=' %{$fg[cyan]%}[$PWD]%{$reset_color%} $(git_prompt_info)'
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值