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
Configuration
Give a man a fish than giving the fishing, configuration instructions are given on the autojump GitHub:
open the file /usr/share/doc/autojump/README.Debian
to view:
When using the bash, need ~/.bashrc
and ~/.bash_profile
add 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 cd
first to enter a path, to the root directory to use j
or autojump
enter the directory, as follows: So
far the installation is successful.