item2 + oh + my + zsh +phpstorm
2019-05-22 14:50
134 查看
1、安装iterm
直接官网下载安装:http://iterm2.com/
2、安装og-my-zsh
[code]sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
zsh --version :确认是否安装过zsh
echo $SHELL:确认当前用的shell
如果不是
/bin/zsh,则用需要修改: chsh -s /bin/zsh 或 sudo chsh -s /bin/zsh
3、配置oh-my-zsh的主题
vim ~/.zshrc
ZSH_THEME="agnoster"
agnoster为你需要修改的主题
4、添加oh-my-zsh各种插件
cd ~/.oh-my-zsh/custom/plugins
自动不全插件
git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
增加指令高亮效果——zsh-syntax-highlighting
git clone git://github.com/zsh-users/zsh-syntax-highlighting.git
最后需要在.zshrc修改plugins
plugins=(
git
zsh-autosuggestions
zsh-syntax-highlighting
)
其他插件一样的用法,注意高亮的必须放在最后面
最后source ~/.zshrc生效
5、卸载oh-my-zsh
进入到.oh-my-zsh/tools目录,执行shell命令 ./uninstall.sh
会提示不让执行shell命令
解决办法
输入 chmod +x uninstall.sh
然后再执行 ./uninstall.sh ,发现oh-my-zsh被卸载
最后删除.zshrc文件
安装过程中有的会遇到报错
不如在yii脚本执行报‘parse error’
解决办法
安装 zsh后,
~/.bash_profile并没有被执行,所以需要编辑 zsh 的配置文件
~/.zshrc,在该文件里加入
source ~/.bash_profile
相关文章推荐
- Flex 4 List itemClick的实现
- 解决Listview的item和里面控件点击事件冲突
- ubuntu 16.04安装PHPSTORM
- phpstorm 配置 xdebug注意事项
- CCMenuItem 的作用 和方法
- Android 第三方开源PullToRefresh加入Item(系列2)
- listview的item动画
- Item 39:明智地使用private继承
- ListView滑动时 item出现黑色背景的问题的解决方法
- 设置系统自带UIBarButtonItem
- 关于ListView的Item中嵌套ProgressBar的那些事
- 错误LINQ to Entities does not recognize the method 'System.Object get_Item(System.Object)' method
- 三星TouchWiz之listview单个Item左右滑动深入剖析(一)——思路篇
- 深入分析JavaWeb Item2 -- Tomcat服务器学习和使用
- ListView Item 无法获得焦点问题
- Failed to check the status of the service com.taotao.service.ItemService.
- listview更改选中时item背景色
- QTableWidget点击item之外空间时信号的获取
- Xamarin.Forms中的ListView的ItemTrapped事件与ItemSelected事件的区别
- WNMP phpStorm开发运行调试配置