gsamokovarov / jump

Jump helps you navigate faster by learning your habits. ✌️
http://gsamokovarov.com/jump
MIT License
1.8k stars 59 forks source link

”status --is-interactive; and . (jump shell | psub)“ is not working in fish of Mac Mojave #38

Closed mail2fish closed 5 years ago

mail2fish commented 5 years ago

I have to use the command which like below:

status --is-interactive; and source (jump shell fish | psub)
mail2fish commented 5 years ago
status --is-interactive; and . (jump shell | psub)

will output error like below

/var/folders/lx/l92vp3f92zj3syxygbhkpcrr0000gn/T//.psub.kBKoDsbPLV: Command substitutions not allowed
gsamokovarov commented 5 years ago

I'm actually running fish shell. Can you give me a bit more context about your system and fish version?

mail2fish commented 5 years ago
$ fish --version
fish, version 3.0.2
image
mail2fish commented 5 years ago
image
mewmew commented 5 years ago

I get the same error, running on Arch Linux with fish version 3.0.2.

After adding the line to ~/.config/fish/fish.config, I get this error when starting a new fish shell:

/tmp/.psub.DBdse2QvUH: Command substitutions not allowed
from sourcing file /tmp/.psub.DBdse2QvUH
    called on line 359 of file /usr/share/fish/config.fish

in function “.”
    called on line 107 of file ~/.config/fish/config.fish

from sourcing file ~/.config/fish/config.fish
    called during startup

source: Error while reading file “/tmp/.psub.DBdse2QvUH”
u@x220 ~> tail .config/fish/config.fish 
# Autojump using https://github.com/gsamokovarov/jump
status --is-interactive; and . (jump shell | psub)

Edit:

Using status --is-interactive; and source (jump shell fish | psub) fixed the issue for me. Thanks @mail2fish for the workaround and @gsamokovarov for releasing Jump!

gsamokovarov commented 5 years ago

You are probably using an older version of jump, the newer ones use source instead of . , will be closing this issue but feel free to reopen it if there are still problems with the fish integration.

ghost commented 2 years ago

I am running starship in fish and I put status --is-interactive; and source (jump shell fish | psub) in my fish config file yet when I try to utilize jump it tells me the database is empty and that I haven't integrated yet.

gsamokovarov commented 2 years ago

You do sound like you are integrated but haven't entered directories in the new shell session that has been integrated with jump.

If you still think the Fish integration is the issue, you may try jump shell fish | source as this is the simpler way to integrate jump in newer Fish shells. I'll go ahead and promote this integration in the README.