wting / autojump

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

Wrong message while installing with yay AUR (bash: j: command not found) #697

Open acid-weaver opened 3 months ago

acid-weaver commented 3 months ago

When installing with yay from AUR at the stage building package it prints wrong message (wrong paths):

Please manually add the following line(s) to ~/.bashrc:

[[ -s /home/{user}/.cache/yay/autojump/pkg/autojump/etc/profile.d/autojump.sh ]] && source /home/{user}/.cache/yay/autojump/pkg/autojump/etc/profile.d/autojump.sh

Please restart terminal(s) before running autojump.

After it, if install is fresh (not reinstalling), after answering Proceed with installation? [Y/n] it prints also:

>>>  Bash users will need to add the following to ~/.bashrc:
[[ -s /etc/profile.d/autojump.sh ]] && source /etc/profile.d/autojump.sh

 Fish users will need to add the following to ~/.config/fish/config.fish:
 [ -f /usr/share/autojump/autojump.fish ]; and source /usr/share/autojump/autojump.fish

And this is actually answer to issue. It don't appear when reinstalling, so in that case you would see only wrong message.