iterm 配置

我只是个搬运工,不想下次安装iterm时再去找网上找连接。权当给本身备份一下git

操做步骤

  1. 基本配置:透明,背景图片
  2. oh-my-zsh下载及主题配置
  3. 自动提示与命令补全
  4. 语法高亮效果
  5. autojump

三、四、5没有现成的文档,就本身写一下吧github

自动提示与命令补全

一、克隆仓库到本地 ~/.oh-my-zsh/custom/plugins 路径下vim

git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions

二、打开.zshrc文件插件

vim ~/.zshrc

三、编辑.zshrc文件code

plugins=(
    git
)
// 修改成
plugins=(
    zsh-autosuggestions
    git
)

四、加载.zshrc配置图片

source ~/.zshrc

从新打开iterm窗口,能够看到效果文档

语法高亮效果

一、安装zsh-syntax-highlighting 插件get

brew install zsh-syntax-highlighting

二、打开.zshrc文件it

vim ~/.zshrc

三、编辑.zshrc文件io

plugins=(
    zsh-autosuggestions
    git
)
// 修改成
plugins=(
    zsh-autosuggestions
    zsh-syntax-highlighting
    git
)
//添加
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

四、加载.zshrc配置

source ~/.zshrc

从新打开iterm窗口,能够看到效果

autojump

一、安装autojump 插件

brew install autojump

二、打开.zshrc文件

vim ~/.zshrc

三、用vim编辑.zshrc文件

plugins=(
    zsh-autosuggestions
    zsh-syntax-highlighting
    git
)
// 修改成
plugins=(
    zsh-autosuggestions
    zsh-syntax-highlighting
    autojump
    git
)
//添加
alias j="autojump"
[[ -s `brew --prefix`/etc/autojump.sh ]] && . `brew --prefix`/etc/autojump.sh

四、加载.zshrc配置

source ~/.zshrc

从新打开iterm窗口,能够看到效果

autojump配置在我本地不生效,报错信息 command not found: autojump,重启电脑,重启iterm都没有用。也在网上找了解决方法,但都没有用。因时间问题暂时搁置后续解决了再来补充 有知道的小伙伴也麻烦告知一下
相关文章
相关标签/搜索