autojmp
An autojump implementation applicable to any shell and any OS by restoring Xython/rtpy.
Keep things simple and portable, do not fuck your brain.
Common Configurations
export AUTOJMP_MAX_CACHE=999
export AUTOJMP_WORD_ANA_LEN=3 # 3-gram is precise enough!
Zsh
Firstly install autojmp: pip install autojmp.
Then, append the following contents to your ~/.zshrc:
autoload -U add-zsh-hook
add-zsh-hook -Uz chpwd (){
emulate -L zsh
ajmp update "$pwd"
}
j(){
cd "$(ajmp complete $@)"
}
Using it in this way:
github> j desk git
github> pwd
/c/Users/<USER>/Desktop/github
github> j git
github> pwd
/c/Users/<USER>/github
Powerh Shell
function cd() {
Set-Location "$@" || return
ajmp update "$pwd"
}
function j() {
Set-Location $(ajmp complete "$@")
}
Motivation
Currently I have to work on Windows and I do need zsh. This leads me to MSYS2.
However, autojump installation does not work for MSYS2.
Hence I restored my own autojump implementation made years ago.
Metadata
Release files for autojmp 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| autojmp-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for autojmp-0.3.0-py3-none-any.whl |
Release files / autojmp-0.3.0-py3-none-any.whl
| Download URL | autojmp-0.3.0-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f43c24f560f71bc1e95be8e7694a3e4e4133f98f7ac82085301758627eaf6f4e
|
|
BLAKE2b-256 checksum How to use checksums |
fcf6cd79b15c8b604d4f1c56a42e94c4f3fbdc40f5ecd008651bbf05c0d71a00
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Security for autojmp 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.