Mac系统安装autojump流程 --摘自小胡子哥

查询:

  在命令行中直接运行autojump查看当前系统是否有安装以及版本号

如果显示如下结果:

The program 'autojump' is currently not installed. You can install it by typing:
sudo apt-get install autojump
  • 1  The program 'autojump' is currently not installed. You can install it by typing: 
  • 2  sudo apt-get install autojump

那么就说明你的系统中还没有安装autojump.

安装:

  • 建议安装 zsh
  • 建议安装 homebrew
  • brew install autojump
  • 在 .zshrc 中找到 plugins=,在后面添加

    plugins=(git autojump)
  • 如果有安装VScode 也可以在命令行中执行code . open .zshrc
  • 然后继续在上述文件中添加

    [[ -s $(brew --prefix)/etc/profile.d/autojump.sh ]] && . $(brew --prefix)/etc/profile.d/autojump.sh
  • 完成后重启zsh
  • 在命令行中可以cd打开几个文件夹,然后用j test这样的格式测试看是否回跳转到j后面的文件路径中
posted @ 2018-02-05 15:19  爱上大树的小猪  阅读(660)  评论(0)    收藏  举报