<p>自动跳转不适用于 zsh 和 iterm2</p>

创建于 2016-06-03  ·  3评论  ·  资料来源: wting/autojump

你好呀,

我正在使用:
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 --helpman autojump也适用)。

所有3条评论

自述文件

Directories must be visited first before they can be jumped to.

此外,获得帮助是j --helpman 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
此页面是否有帮助?
0 / 5 - 0 等级