autojump icon indicating copy to clipboard operation
autojump copied to clipboard

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

Open phiranf opened this issue 7 years ago • 6 comments

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

phiranf avatar Aug 29 '17 09:08 phiranf

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

edenworky avatar Mar 23 '18 14:03 edenworky

same issue for me but with bash...

dansl19 avatar Apr 26 '18 07:04 dansl19

me too. j think any directory is not exists

errogaht avatar May 18 '18 04:05 errogaht

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

wting avatar Sep 07 '18 01:09 wting

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

jonasmellquist avatar Feb 22 '19 18:02 jonasmellquist

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

kniost avatar May 16 '19 14:05 kniost