Mac 安装 oh-my-zsh + autojump + zsh-autosuggestions + zsh-syntax-highlighting + solarized 配色

查看 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 https://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 https://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
本作品采用《CC 协议》,转载必须注明作者和本文链接
本帖由系统于 4年前 自动加精
讨论数量: 3
plugins=(git brew laravel5 autodump)

[oh-my-zsh] plugin 'autodump' not found
autodump 提示找不到,应该是 autojump

plugins=(git brew laravel5 autojump)
5年前 评论