A plugin for profile.d that integrates autojump - a faster way to navigate your filesystem.
- Automatically installs and configures autojump
- Integrates with your shell to provide the
j
command - Maintains jump database automatically
- Purges stale entries on shell startup
- Add the following line to your
~/.profiledrc
:
PLUGINS=(
# ... your other plugins ...
https://github.com/jakubro/profile.d-autojump
)
- Run the installation commands:
profile.d-install
. ~/.bashrc
Once installed, you can use autojump by:
- Navigate to directories as you normally would using
cd
- After building up a database of directories, you can jump to frequently used directories using:
j directory-name
For example:
# First visit
cd /var/log/nginx
# Later, from anywhere
j nginx # Jumps to /var/log/nginx
The more you use cd
to visit directories, the more accurate autojump becomes at predicting where you want to go.
The plugin:
- Installs autojump in
~/.autojump
during the installation phase - Loads autojump's bash integration on shell initialization
- Automatically purges stale entries from the jump database when starting a new shell
- Python (for autojump installation)
If you would like to contribute to this project, please feel free to submit a pull request or open an issue for discussion.
MIT License - see the LICENSE file for details.