1. Mac 的 shell

1.1 查看 Mac 上已有的 shell

➜  ~ cat /etc/shells
# List of acceptable shells for chpass(1).
# Ftpd will not allow users to connect who are not using
# one of these shells.
/bin/bash
/bin/csh
/bin/dash
/bin/ksh
/bin/sh
/bin/tcsh
/bin/zsh

1.2 查看mac默认的shell

➜  ~ echo $SHELL
/bin/zsh

1.3 将默认 shell 改成 zsh

➜ ~ chsh -s /bin/zsh

2. 安装zsh以及插件

2.1 安装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

2.2 安装插件zsh-syntax-highlighting

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

2.3 安装插件zsh-autosuggestions

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

2.4 安装插件autojump(确保有brew)

➜  ~ brew install autojump

2.5 安装插件solarized

git clone git://github.com/altercation/solarized.g

3.修改~/.zshrc文件

安装成功后,编辑配置文件,vi编辑器打开~/.zshrc文件,按i进入编辑,按esc然后输入:wq保存退出,主要是吧plugins改一下其他都不要管

➜  ~ vi ~/.zshrc# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/Users/sophiafez/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="robbyrussell"
# Set list of themes to pick from when loading at random
# Setting this variable when ZSH_THEME=random will cause zsh to load
# a theme from this variable instead of looking in $ZSH/themes/
# If set to an empty array, this variable will have no effect.
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"
# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
# You can set one of the optional three formats:
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# or set a custom format using the strftime function format specifications,
# see 'man strftime' for details.
# HIST_STAMPS="mm/dd/yyyy"
# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder
# Which plugins would you like to load?
# Standard plugins can be found in $ZSH/plugins/
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(gitzsh-syntax-highlightingzsh-autosuggestionsautojump
)
source $ZSH/oh-my-zsh.sh
# User configuration
# export MANPATH="/usr/local/man:$MANPATH"
# You may need to manually set your language environment
# export LANG=en_US.UTF-8
# Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then
#   export EDITOR='vim'
# else
#   export EDITOR='mvim'
# fi
# Compilation flags
# export ARCHFLAGS="-arch x86_64"
# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
#
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
source /Users/sophiafez/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
-- INSERT --

在当前bash环境下读取并执行FileName(zshrc)中的命令

➜ ~ source ~/.zshrc

安装oh-my-zsh+、插件zsh-syntax-highlighting、zsh-autosuggestions、zsh-autosuggestions、autojump修改配置相关推荐

  1. MacOS在zsh环境下安装和使用终端插件autojump

    文章目录 介绍 安装 autojump 使用 git clone 使用 HomeBrew 安装 配置 使用 autojump 卸载 autojump 介绍 autojump is a faster w ...

  2. MacOS安装zsh插件zsh-autosuggestion(自动命令补全和建议)

    文章目录 安装命令一 安装命令二 安装命令三 使用 插件 zsh-autosuggestion 用于命令建议和补全. GitHub主页:https://github.com/zsh-users/zsh ...

  3. 安装zsh并修改配置

    Zsh 入门 本文前提 CentOS 6.7 64 bit root 用户 Zsh 介绍 Zsh 兼容 Bash,据传说 99% 的 Bash 操作 和 Zsh 是相同的 Zsh 官网:Zsh 先看下 ...

  4. Linux中zsh插件,Zsh 常用插件

    zsh有了各种插件后才真是如虎添翼,各种命令高亮,自动补全,命令参数辅助等. zsh插件安装方法 各种插件的安装方法各异,有的直接将插件文件夹拷贝到~/.oh-my-zsh/custom/plugin ...

  5. Zsh vs. Bash不完全对比解析,zsh是一种更强大的被成为“终极”的Shell

    https://www.zhihu.com/question/21418449 Mort | Zsh vs. Bash:不完全对比解析(1) 2014-10-07  bdpqlxz Zsh和Bash, ...

  6. vim 离线安装_VIM学习笔记 插件列表(Plugin)

    由于zhihu的垃圾编辑器不支持表格,请查看以下完整格式: http://yyq123.github.io/learn-vim/learn-vim-plugin.html 说明: 本列表完全基于作者的 ...

  7. zsh介绍:2: CentOS下使用zsh

    前篇文章介绍了OSX的Catalina版本下从Bash转向zsh需要注意的事项和方法,这篇结合实例继续说明一下在CentOS下使用的zsh的方法. 事前准备 [root@liumiaocn ~]# c ...

  8. linux jedi-vim安装,python学习-vim插件安装

    centos7上自带python2.7,我们需要优化一下python环境.一.使用豆瓣源加速软件安装pip install -i   flask    #使用-i 选项 mkdir ~./pip &a ...

  9. 离线安装Visual Studio Code插件

    在使用Visual Studio Code 开发时候,有时可能会碰到需要离线安装插件的情况.这时候就需要单独下载插件包,本文就以C/C++插件包为例说明如何离线安装Visual Studio Code ...

  10. 2021年大数据ELK(八):Elasticsearch安装IK分词器插件

    全网最详细的大数据ELK文章系列,强烈建议收藏加关注! 新文章都已经列出历史文章目录,帮助大家回顾前面的知识重点. 目录 系列历史文章 安装IK分词器 一.下载Elasticsearch IK分词器 ...

最新文章

  1. scp和rsync的区别和常用参数
  2. RequireJS首次加载偶尔失败
  3. JNI学习积累之二 ---- 数据类型映射、域描述符说明
  4. 移动端,fixed bottom问题
  5. python导入类属性不存在_为什么我会得到一个错误:我的类中不存在该属性?
  6. c语言数据结构单链表输出链表操作,单链表一系列操作c语言实现(按照严蔚敏那本数据结构编写)...
  7. 最新android studio 第三方库包导入方法jar,so,module
  8. 图片随意命名可能被广告拦截插件拦截
  9. 易语言皮肤模块200个_王者荣耀:第一个200战令玩家,连天美都赞他的升级方法最科学...
  10. Kindle3 字典安装
  11. 稳定同位素示踪技术在内源性物质代谢调控中的应用
  12. windows+7+32位java_深度技术windows7 32位专业版下载
  13. postgresql源码学习(38)—— 备份还原② - do_pg_stop_backup函数
  14. 倒水问题python实现
  15. Linux之常见面试题知识点批注(七)
  16. Launcher中拨号、短信图标加数字提示未接电话、未读短信数量
  17. 你有没有过那种明知是对的但却没能去做的事?
  18. storyboard搭建项目_轻松搞定一人一个storyboard开发
  19. 【对比Java学Kotlin】object 关键字
  20. 芯片制造之掩模领域中的术语

热门文章

  1. java整人代码大全_整人代码vbs大全分享
  2. Mac下安装Lingo
  3. java虚拟怎么安装_JAVA虚拟机怎么安装?
  4. wxWindows 程序编译选项设置统揽
  5. u盘如何安装2003服务器系统安装,u盘怎么安装win server2003系统是iso
  6. python 视频转场_Python 带你高效创作短视频,视频创作秀到飞起!!!
  7. 如何从Unity商店下载资源?
  8. 非计算机专业计算机教学考试,论非计算机专业的计算机教学与等级考试
  9. python安装包下载
  10. w10计算机字体怎么设置在哪里设置,win10电脑字体大小怎么设置_win10如何设置字体大小...