autojump not working with zsh and iterm2

Created on 3 Jun 2016  ·  3Comments  ·  Source: wting/autojump

Hello there,

I'm using:
zsh with
iTerm 2 Build 3.0.0

After following the post installation notes and adding the following to my .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 appears to still not be working:

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
.

am I missing something here? Thanks for your help :)

Most helpful comment

From the readme:

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

Also, it's j --help to get the help (man autojump works too).

All 3 comments

From the readme:

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

Also, it's j --help to get the help (man autojump works too).

i still dont get it

+1 not working with iTerm2+zshrc, while working with MacOS built-in Terminal+zshrc


seems related to https://github.com/wting/autojump/issues/473#issuecomment-310117988

my fault, missing this one

# 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
Was this page helpful?
0 / 5 - 0 ratings

Related issues

pgrm picture pgrm  ·  4Comments

turingking picture turingking  ·  12Comments

davux picture davux  ·  9Comments

qazip picture qazip  ·  3Comments

rsparkyc picture rsparkyc  ·  11Comments