博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
homebrew 使用心得
阅读量:7137 次
发布时间:2019-06-28

本文共 2136 字,大约阅读时间需要 7 分钟。

'''

安装anaconda
安装命令:
brew search anaconda
brew cask install anaconda
添加环境变量:
vi ~/.bash_profile
export PATH="usr/local/anaconda3/bin:$PATH"
刷新环境变量:
source ~/.bash_profile
试用:
conda list
后续:
conda upgrade anaconda
conda upgrade anaconda-navigator
anaconda-navigator --reset
conda upgrade anaconda-client
conda upgrade -f anaconda-client
更改源请看USTC镜像站的帮助页面
查看环境变量:
echo $PATH
编辑环境变量:
sudo vi /etc/paths

替换bash为zsh

安装iterm2:brew search iterm2
brew cask install iterm2
安装git:
brew search git
brew install git
更换默认终端:
chsh -s /bin/zsh(bash)
安装oh my zsh:
sh -c "$(curl -fsSL )"
oh-my-zsh开源地址:
安装PowerLine:
pip install powerline-status --user
若没有pip先:sudo easy_install pip
安装PowerFonts: 安装字体库需要首先将项目git clone至本地,然后执行源码中的install.sh。
在你习惯的位置新建一个文件夹,如:~/Desktop/OpenSource/
在此文件夹下执行git clone命令:
git clone --depth=1
cd fonts
./install.sh
然后更改字体:iTerm2 -> Preferences -> Profiles -> Text
安装配色方案:
cd ~/Desktop/OpenSource
git clone
cd solarized/iterm2-colors-solarized/
open .
在打开的finder窗口中,双击Solarized Dark.itermcolors和Solarized Light.itermcolors即可安装明暗两种配色.
安装主题:
下载agnoster主题,执行脚本安装:
cd ~/Desktop/OpenSource
git clone
cd oh-my-zsh-agnoster-fcamblor/
./install
执行上面的命令会将主题拷贝到oh my zsh的themes中
拷贝完成后,执行命令打开zshrc配置文件,将ZSH_THEME后面的字段改为agnoster。
vi ~/.zshrc
修改完成后按一下esc调出vi命令,输入:wq保存并退出vi模式。
此时command+Q或source配置文件后,iTerm2变了模样
安装高亮插件:
cd ~/.oh-my-zsh/custom/plugins/
git clone
vi ~/.zshrc
这时我们再次打开zshrc文件进行编辑。找到plugins,此时plugins中应该已经有了git,我们需要把高亮插件也加上:
1356013-20181203225813595-877449741.png
请务必保证插件顺序,zsh-syntax-highlighting必须在最后一个。
然后在文件的最后一行添加:source ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
按一下esc调出vi命令,输入:wq保存并退出vi模式。
执行命令使刚才的修改生效:source ~/.zshrc
更换背景图片方式:iTerm2 -> Preferences -> Profiles -> Window -> BackGround Image勾选图片即可。
历史命令智能提示插件:
cd ~/.oh-my-zsh/custom/plugins/
git clone
vi ~/.zshrc
1356013-20181203225851136-801991391.png
Preferences -> Profiles -> Colors 中有Foreground是标准字体颜色,ANSI Colors中Bright的第一个是补全的字体颜色。
Preferences -> Profiles -> Colors 中有Foreground是标准字体颜色,ANSI Colors中Bright的第一个是补全的字体颜色。

相关链接:https://www.jianshu.com/p/9c3439cc3bdb更多主题可看官网:https://github.com/robbyrussell/oh-my-zsh/wiki/Themes另外还有一篇CSDN 的文章在印象笔记。

'''

转载于:https://www.cnblogs.com/handy1998/p/10061632.html

你可能感兴趣的文章
SqlMetal Builder V2版本
查看>>
C#中数组与ArrayList的简单使用
查看>>
Activitys, Threads, & Memory Leaks
查看>>
poj3308Paratroopers(最小割)
查看>>
关于java.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStream解决办法
查看>>
携程面试之后的一些感想
查看>>
[收藏] 如何阅读别人的代码
查看>>
09年全年总结
查看>>
如何实现两个人脸照片的变换
查看>>
Bigtable:一个分布式的结构化数据存储系统
查看>>
Visual Studio OpenGL 配置方法
查看>>
Eclipse IDE for C/C++ Developers
查看>>
Fedora Server 21下OpenJdk和Oracle Jdk共存
查看>>
java.lang.IllegalArgumentException: error at ::0 can't find referenced pointcut
查看>>
[C# 基础知识系列]专题三:如何用委托包装多个方法——委托链
查看>>
Oracle DBA手记4:数据安全警示录
查看>>
HDU 4638 Group(分组)
查看>>
BZOJ 1037 生日聚会Party(DP)
查看>>
DG - 将physical standby置于read-only模式
查看>>
nginx的反向代理proxy_pass指令
查看>>