wting / autojump

A cd command that learns - easily navigate directories from the command line
Other
16.3k stars 705 forks source link

Using autojump spams 'dir not found' and 'use --help' #498

Open phiranf opened 7 years ago

phiranf commented 7 years ago

I tried to install autojump the brew and the manual way but both won't install it properly for me.

When I try to use j desk or autojump desk my terminal gets spammed a couple of times with autojump: directory '/Users/kalim desk' not found and Try 'autojump --help' for more information.

When I try to use autojump --help or autojump --version it just kills my whole Terminal session (iTerm2)

Python version: Python 2.7.10

Zsh version: zsh 5.2 (x86_64-apple-darwin16.0)

.zshrc content:

[[ -s /Users/kalim/.autojump/etc/profile.d/autojump.sh ]] && source /Users/kalim/.autojump/etc/profile.d/autojump.sh
autoload -U compinit && compinit -u
edenworky commented 6 years ago

This happens to me also. Installed through Homebrew, same versions, my .zshrc is copied from the installation message. Any update on this?

dansl19 commented 6 years ago

same issue for me but with bash...

errogaht commented 6 years ago

me too. j think any directory is not exists

wting commented 6 years ago

I can't reproduce with autojump installed via homebrew on OSX 10.13.6. Is still happening for y'all?

╭─@ringo ~ ‹python-2.7.10›
╰─ mkdir "rare directory with space"                                                         2018.09.06 18:33:42 PDT
╭─@ringo ~ ‹python-2.7.10›
╰─ cd rare\ directory\ with\ space                                                           2018.09.06 18:33:48 PDT
╭─@ringo ~/rare directory with space ‹python-2.7.10›
╰─ cd                                                                                        2018.09.06 18:33:50 PDT
╭─@ringo ~ ‹python-2.7.10›
╰─ j rare directory                                                                          2018.09.06 18:33:52 PDT
/Users/ting/rare directory with space
╭─@ringo ~/rare directory with space ‹python-2.7.10›
╰─ cd                                                                                        2018.09.06 18:33:56 PDT
╭─@ringo ~ ‹python-2.7.10›
╰─ zsh --version                                                                             2018.09.06 18:33:59 PDT
zsh 5.5.1 (x86_64-apple-darwin17.5.0)
╭─@ringo ~ ‹python-2.7.10›
╰─ autojump --version                                                                        2018.09.06 18:34:02 PDT
autojump v22.5.1
╭─@ringo ~ ‹python-2.7.10›
╰─ which autojump                                                                            2018.09.06 18:34:05 PDT
/usr/local/bin/autojump
╭─@ringo ~ ‹python-2.7.10›
╰─                                                                                           2018.09.06 18:34:08 PDT
jonasmellquist commented 5 years ago

I had the same issue - fixed it either by touch ~/Library/autojump/autojump.txt or what I think fixed it was me actually removing my alias j='autojump' from my ~/.zshrc file after looking at man autojump and noticing it actually had the j "convenience" shortcut, doh!

Running with zsh 5.7.1 (x86_64-apple-darwin18.2.0) autojump v22.5.1 Homebrew 2.0.2

Edit: Writing j --version still kills the terminal, autojump --version does not

kniost commented 5 years ago

I had the same issue - fixed it either by touch ~/Library/autojump/autojump.txt or what I think fixed it was me actually removing my alias j='autojump' from my ~/.zshrc file after looking at man autojump and noticing it actually had the j "convenience" shortcut, doh!

Running with zsh 5.7.1 (x86_64-apple-darwin18.2.0) autojump v22.5.1 Homebrew 2.0.2

Edit: Writing j --version still kills the terminal, autojump --version does not

Just like you and can't fix it with all solutions, both j --version and autojump --version kill the terminal