Mac终端iTrem2的配置,解决安装brew卡在 “Cloning into ‘/usr/local/Hombrew/,curl: (7) Failed to connect to raw.gith
Mac终端iTrem2的配置以及出现的问题
- iTrem2的下载
- Homebrew安装
- Oh-My-Zsh官方链接
- **乱码解决方案:**
- 在source ~/.zshrc 可能出现的问题
- **Mac 解决安装brew卡在 “Cloning into ‘/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core‘...”**
- curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused的几种解决方式
iTrem2的下载
1.链接: iTrem官方链接.
2. 安装 iTerm2 Solarized Dark Higher Contrast 配色方案:
将该配色方案文件(Solarized Dark Higher Contrast.itermcolors)复制出来,保存到本地,文件命名为 SolarizedDarkHigherContrast.itermcolors ,然后双击即可安装。安装完后打开 iTerm2 终端,依次选择菜单栏:iTerm2 –> Preferences –> Profiles –> Colors –> Colors Presets –> SolarizedDarkHigherContrast,至此 iTerm2 Solarized Dark Higher Contrast 配色方案已成功安装
Homebrew安装
网站:https://brew.sh/
或者终端输入
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
-zsh
zsh 一般 Mac 已经自带了,无需额外安装。
可以用 cat /etc/shells
查看 zsh 是否安装,如果列出了 /bin/zsh 则表明 zsh 已经安装了。
如果没装则需要输入:brew install zsh zsh-completions
这是用Homebrew装,需要Mac上有Homebrew
接下来修改 iTerm2 终端的默认 Shell,可以用 echo $SHELL 查看当前 Shell 是什么,如果不是 /bin/zsh 则用如下命令修改 iTerm2 的默认 Shell 为 zsh:
chsh -s /bin/zsh
Oh-My-Zsh官方链接
链接: Oh-My-Zsh.Oh My Zsh 是基于 zsh 的一个扩展工具集,它可以通过curl或者wget来安装
- via curl
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
- via wget
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
装好之后就可以换到 agnoster 主题,就是之前看到的那张颜值主题,Oh My Zsh 一般自带有这个主题。
可以看看它的默认主题:
ls ~/.oh-my-zsh/themes
需要修改主题只需:
vim ~/.zshrc
应用配置:
chsh -s /bin/zsh
重启 iTerm2
乱码解决方案:
Powerline
git clone git@github.com:powerline/fonts.git
cd fonts./install.sh
然后到 iterm2 配置,设置字体为Roboto Mono for Powerline
:
solarized
Solarized 是个很牛逼的配色项目,主流OS、IDE、Editor都有它影子。
> # git下Solarized 的源码 git clone git://github.com/altercation/solarized.git
>
> # 进入文件夹 cd solarized/vim-colors-solarized/colors
>
> #下面可能要管理员权限 sudo mkdir -p ~/.vim/colors sudo cp solarized.vim ~/.vim/colors/
>
> # 创建.vimrc文件 sudo vim ~/.vimrc
>
> # 把下面这三行复制进去 syntax enable set background=dark colorscheme solarized
在source ~/.zshrc 可能出现的问题
解决方案:
执行以下代码:
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
后续:就不在详写了
下面引用几位博主写的博文,可以少走弯路!!
原文:https://blog.csdn.net/qianghaohao/article/details
原文:https://blog.csdn.net/huihut/article/details/61418136
原文:http://www.jianshu.com/p/e42c7e7a4253
Mac 解决安装brew卡在 “Cloning into ‘/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core‘…”
原文https://blog.csdn.net/zmzwll1314/article/details/108642529
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused的几种解决方式
本文链接:https://blog.csdn.net/qq_43531694/article/details/106862753
Mac终端iTrem2的配置,解决安装brew卡在 “Cloning into ‘/usr/local/Hombrew/,curl: (7) Failed to connect to raw.gith相关推荐
- mac 安装homebrew 报错 curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refu
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)" 推荐选 ...
- 安装ohmyzsh报错:curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
报错的根本原因是连不上https://raw.githubusercontent.com/这个域名的443端口,443端口是用于HTTP服务的,在安装Homebrew时大概率也会遇到同样的情况(被墙了 ...
- 安装RVM时报错 curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
1.打开hosts文件 sudo vim /etc/hosts 2.在hosts文件中修改或者插入下面一行 199.232.28.133 raw.githubusercontent.com 3.接着回 ...
- Mac brew 卡在 ‘Cloning into ‘.../homebrew-core(或 homebrew-cas)‘
brew 卡在 Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'... 或 Cloning into '/u ...
- brew安装_解决安装brew报的curl的443错误
通过Hombrew官网执行执行安装命令 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/insta ...
- Mac安装truffle框架时出现✓ Preparing to download box ✖ Downloading Unbox failed! Error: connect的解决方法
Mac安装truffle框架时出现✓ Preparing to download box ✖ Downloading Unbox failed! Error: connect的解决方法 https:/ ...
- mac 安装 brew 卡在安装过程不动
problem mac 安装 brew 卡在安装过程不动 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homeb ...
- Mac终端的ruby和pods安装和使用(超干货)
*********上部分是:Ruby的安装**************** 1.安装RVM $ curl -L https://get.rvm.io | bash -s stable 2.载入rvm ...
- brew安装mysql ,最后ln -sfv /usr/local/opt/mysql/*.plist ~/Library/LaunchAgents 这句什么意思?
andymini:local andy$ ln -sfv /usr/local/opt/mysql/*.plist ~/Library/LaunchAgents /Users/andy/Library ...
最新文章
- python处理日志_python日志处理(logging模块)
- cubase怎么添加midi设备_WIDI MASTER:5针无线蓝牙MIDI适配器
- Rust语言之HelloWorld Web版
- 洛谷 - P1433 - 吃奶酪 - dfs
- C++ Primer 5th笔记(chap 13 拷贝控制)合成的移动操作
- OpenGL波浪模拟
- Python特殊函数
- 【软件测试】黑盒测试の正交试验法
- 案例 实现文件读写器 c# 1614523907
- SoapUI测试webservice
- JavaScript文档对象模型DOM节点操作之复制节点(7)
- 喜马拉雅 FM 已购付费音频下载
- Linux C 下的socket网络编程
- 大连大学计算机专业就业前景怎么样,大连大学有哪些优势专业?它就业率高吗?考生们快看看吧!...
- iOS——UINavigationController简单实用以及内存警告处理过程
- c++_2: 类的定义
- Kotlin object的三种用法
- 实例讲解新GRE填空的变化
- Figma又崩了,但我们P事没有
- iphone android短信中心号码,iPhone设置短信中心号码失败
热门文章
- [Sqoop]Sqoop使用
- 网易蜂巢微服务架构:用RabbitMQ实现轻量级通信
- inflate()引发NullPointerException
- classical CNN models : ZF Net 模型结构详解
- 商品常见指标 - 商品毛利
- Android Design Support Library BottomSheetBehavior使用
- mosquitto mysql_mosquitto权限验证
- SocketTools Library Edition C++ Crack
- 织梦底部添加版权信息标签代码
- 无线网卡ipv4连接不上