studyNotes icon indicating copy to clipboard operation
studyNotes copied to clipboard

MAC效率工具autojump

Open junhey opened this issue 8 years ago • 0 comments

安装过程

  1. 安装zsh,已安装忽略该步
curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh
  1. 安装homebrew,已安装忽略该步
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  1. 安装autojump
brew install autojump
  1. 在 .zshrc 中找到 plugins=,在后面添加
plugins=(git autojump)
  1. 继续在上述文件中添加
[[ -s $(brew --prefix)/etc/profile.d/autojump.sh ]] && . $(brew --prefix)/etc/profile.d/autojump.sh

  1. 使修改文件生效
source ~/.zshrc

使用

  • 添加一条快捷键设置
j -a keyboard_shortcut_command '/User/zxx/Desktop/test'  # j -a 你定义的快捷键命令  '要跳转到的目录位置'

以后再去test目录,就可以直接输入:j keyboard_shortcut_command (keyboard_shortcut_command就是魔法啦~)

  • 直接j document_name

自动定位到曾经去过的document_name目录文件夹下,此时的目录一定不能写错!

  • 更多使用方便可以autojump --help

参考:autojump官方github

junhey avatar Jul 10 '18 08:07 junhey