GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - totosuki/homebrew-jmp: Commands that can jump (jmp) directories

BranchesTags
Open more actions menu

Latest commit

 

History

14 Commits
14 Commits

Folders and files

NameName
Last commit message
Last commit date
Formula
Formula
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
jmp.sh
jmp.sh
 
 

Repository files navigation

jmp - Directory Jumper

jmp is a Homebrew-installed command-line utility to quickly navigate to frequently used directories using a cached list and fzf.

Installation

Prerequisites

To use jmp, ensure you have the following software installed:

  • fzf: A command-line fuzzy finder for interactive directory selection.
  • fd (optional): A faster alternative to find for directory traversal.
  • tmux (optional): Required for fzf-tmux if you want to use jmp inside a tmux session.

Using Homebrew

Install jmp with Homebrew:

brew tap totosuki/jmp
brew install jmp

After installation, add the following alias to your shell configuration (.zshrc or .bashrc)

alias jmp='source jmp'

Reload your shell

source ~/.zshrc # or source ~/.bashrc

Usage

jmp [OPTIONS]

Options

  • -u, --update Update the directory cache file.
  • -h, --help Show the help message.

How It Works

  1. Cache Creation:
    The jmp command generates a cache of directories in your home directory. This can be updated using the --update option.

  2. Directory Selection:
    Use fzf to interactively select a directory from the cached list.

  3. Directory Jumping:
    After selection, jp changes the current working directory to the chosen one.

Recommended Software

For the best experience, we recommend installing:

  • fd: A faster alternative to find for building the directory cache.
  • fzf: A command-line fuzzy finder for directory selection.
  • tmux: Required for fzf-tmux, enabling directory selection inside a tmux session.

Performance Comparison

  • fd: Optimized for speed. Example: Updating the cache with fd might take ~1 second.
  • find: Slower but universally available. Example: Updating the cache with find might take 5-10 seconds.

Additional Notes

  • If fzf-tmux is available, jmp will automatically use it when inside a tmux session. Otherwise, fzf will be used as a fallback.
  • To use fzf-tmux, ensure that tmux is installed and you are in an active tmux session.

Uninstallation

To remove jmp, run:

brew uninstall jmp

You may also want to remove the alias from your .zshrc or .bashrc.

About

Commands that can jump (jmp) directories

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.