studyNotes
studyNotes copied to clipboard
MAC效率工具autojump
安装过程
- 安装zsh,已安装忽略该步
curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh
- 安装homebrew,已安装忽略该步
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- 安装autojump
brew install autojump
- 在 .zshrc 中找到 plugins=,在后面添加
plugins=(git autojump)
- 继续在上述文件中添加
[[ -s $(brew --prefix)/etc/profile.d/autojump.sh ]] && . $(brew --prefix)/etc/profile.d/autojump.sh
- 使修改文件生效
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