You have personal projects, you have work projects. You have a lot of directories and you need to navigate to them quickly... BAM! and you're there. BAM! is a simple and speedy utility to quickly navigate to the root of project directories using a fuzzy prefix syntax.
-
Download a recent release of BAM! from the GitHub releases page.
-
Unpack it:
tar -xvf <file>.tar.gz
. -
Move the
bam
binary to/usr/local/bin
:mv bam /usr/local/bin/
. -
Configure an alias with your default configuration options:
# .zshrc or .bashrc function bam() { local dest=$(/usr/local/bin/bam -root $HOME/Projects $1) cd $dest }
// Directories:
$HOME/Projects/science/physics/black-holes
$HOME/Projects/science/physics/nebulae
$HOME/Projects/ballet
$HOME/Projects/bingo
// Quickly navigate to the black-holes directory by indicating
// that you are searching for a directory whose name starts with
// "b" that is nested somewhere beneath a directory whose name
// starts with "s".
bam s/b
// Quickly navigate to the "ballet" directory because it is sorted
// before the "bingo" directory.
bam b
// Quickly navigate to the "bingo" directory.
bam bin
You name it, right now we're alpha but it works for me :)