你好呀,
我正在使用:
zsh 与
iTerm 2 构建 3.0.0
遵循安装后说明并将以下内容添加到我的.zshrc
[[ -s /Users/max/.autojump/etc/profile.d/autojump.sh ]] && source /Users/max/.autojump/etc/profile.d/autojump.sh
autoload -U compinit && compinit -u
自动跳转似乎仍然无法正常工作:
autojump git:master ❯ ls
AUTHORS bin tools
CHANGES.md docs tox.ini
LICENSE install.py uninstall.py
Makefile requirements-dev.txt
README.md tests
autojump git:master ❯ j tools
.
autojump git:master ❯ pwd
/Users/max/repos/autojump
autojump git:master ❯ j help
.
autojump git:master ❯ autojump help
.
我在这里错过了什么吗? 谢谢你的帮助 :)
从自述文件:
Directories must be visited first before they can be jumped to.
此外,获得帮助是j --help
( man autojump
也适用)。
我还是不明白
+1 不适用于 iTerm2+zshrc,而使用 MacOS 内置 Terminal+zshrc
似乎与https://github.com/wting/autojump/issues/473#issuecomment -310117988 有关
我的错,错过了这个
# brew install autojump
Add the following line to your ~/.bash_profile or ~/.zshrc file:
[ -f /usr/local/etc/profile.d/autojump.sh ] && . /usr/local/etc/profile.d/autojump.sh
If you use the Fish shell then add the following line to your ~/.config/fish/config.fish:
[ -f /usr/local/share/autojump/autojump.fish ]; and source /usr/local/share/autojump/autojump.fish
Restart your terminal for the settings to take effect. <-----
zsh completions have been installed to:
/usr/local/share/zsh/site-functions
最有用的评论
从自述文件:
此外,获得帮助是
j --help
(man autojump
也适用)。