Closed mail2fish closed 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
I'm actually running fish shell. Can you give me a bit more context about your system and fish version?
$ fish --version
fish, version 3.0.2
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!
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.
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.
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.
I have to use the command which like below: