Tuesday, July 12, 2016

Autojump usage

Autojump is a tool that allows us to navigate our filesystem faster when using the command line.
It does all that by keeping statistics of which folders we visit most frequently and by making that available to us through some handy shortcuts.

There are multiple integrations with various shells, and an autojump plugin bundled with my oh-my-zsh.

Installation:

We can install autojump using our package manager:
sudo apt-get install autojump

After that we need to source its initialization file. There are different files for each mainstream shell, so for zsh in ubuntu this line should do the trick:

[[ -s /usr/share/autojump/autojump.zsh ]] && . /usr/share/autojump/autojump.zsh

copy that in your .zshrc and do a
. ~/.zshrc

you are ready to use autojump now.

Usage:

See statistics:
autojump -s

Navigate:

j dir

Open a directory in file browser instead of navigating:

jo dir

Autojump website:https://github.com/wting/autojump

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.