热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

Mac安装ohmyzsh+autojump+zshautosuggestions+zshsyntaxhighlighting+solarized配色

查看Mac上已有的shellcatetcshellsbinbashbincshbinkshbinshbintcshbinzsh将默认shell改成zshchsh-sbinzsh安装






查看Mac上已有的shell

cat /etc/shells
/bin/bash
/bin/csh
/bin/ksh
/bin/sh
/bin/tcsh
/bin/zsh

将默认shell改成zsh

chsh -s /bin/zsh

安装oh my zsh

git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc

配置zsh

vim ~/.zshrc
ZSH_THEME="ys"
plugins=(git brew laravel5)

shell solarized 配色

git clone git://github.com/altercation/solarized.git
# 然后打开 solarized/osx-terminal.app-colors-solarized/Solarized Dark ansi.terminal 配置文件

安装 autojump 插件

brew install autojump # 确保有 brew 命令

编辑 ~/.zshrc 文件

vim ~/.zshrc
plugins=(git brew laravel5 autojump)
[[ -s $(brew --prefix)/etc/profile.d/autojump.sh ]] && . $(brew --prefix)/etc/profile.d/autojump.sh

安装 zsh-autosuggestions 插件

克隆源码

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

编辑 ~/.zshrc 文件

vim ~/.zshrc
plugins=(git brew laravel5 autojump zsh-autosuggestions)

安装 zsh-syntax-highlighting 插件

克隆源码

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

编辑 ~/.zshrc 文件

vim ~/.zshrc
plugins=(git brew laravel5 autojump zsh-autosuggestions zsh-syntax-highlighting)

source ~/.zshrc


推荐阅读
author-avatar
tengpou_260475
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有