To use autojump in Windows console, you have to install clink first. I use cmder as the console emulator, which use clink by default. So it's unnecessary to install clink.
autojump uses Python, so python.exe
has to be added to %PARH% by adding
the following lines into C:\apps\cmder\config\user-profile.cmd:
set PATH=%PATH%;%USERPROFILE%\Anaconda3;%USERPROFILE%\Anaconda3\Scripts
Clone and install autojump according its documents:
cd C:\apps
git clone git://github.com/joelthelion/autojump.git
cd autojump
python install.py
There are 2 bugs for autojump on Windows. The first is Crash on Windows due to improper backslash handling in autojump_match.py. To fix it, replace line 78 ~ 88 as follows:
sep = '\\\\' if os.sep == '\\' else os.sep
regex_no_sep = '[^' + sep + ']*'
regex_no_sep_end = regex_no_sep + '$'
regex_one_sep = regex_no_sep + sep + regex_no_sep
The second is Running autojump on Windows with Clink.
Fix it with adding cd=cd $*$Tautojump -i $Gnul
to C:\apps\cmder\config\user-aliases.cmd.
The meaning of $T
and $G
is explained at Windows Batch Scripting.
After installation, add autojump's bin folder into %PATH%, via add the following line into C:\apps\cmder\config\user-profile.cmd:
set PATH=%PATH%;%USERPROFILE%\AppData\Local\autojump\bin