autojump installation (only bash without zsh installed)

Environmental description

I want to install autojump in an environment where there is no zsh, and found that the big guys have installed zsh, but I really don’t want to install it (it may be really fragrant in the future), so I can only find a way by myself. The author's installation environment is WSL2 (Ubuntu version), other distributions of Linux systems are also available, without zsh installed.

Install autojump

sudo apt-get install autojump

Insert picture description here

Configuration

Give a man a fish than giving the fishing, configuration instructions are given on the autojump GitHub:
Insert picture description here
open the file /usr/share/doc/autojump/README.Debianto view:

When using the bash, need ~/.bashrcand ~/.bash_profileadd configuration information, as follows:

. /usr/share/autojump/autojump.sh

The command is:

vim ~/.bashrc
source ~/.bashrc

Configuration information such as zsh can be completed according to GitHub.

test

Use cdfirst to enter a path, to the root directory to use jor autojumpenter the directory, as follows: So
Insert picture description here
far the installation is successful.

Guess you like

Origin blog.csdn.net/m0_46161993/article/details/110869054
Recommended