nd-cli 1.0.0

A cli directory navigator
Documentation
  • Coverage
  • 0%
    0 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 20.49 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.32 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 26s Average build duration of successful builds.
  • all releases: 25s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • mcmanussliam

nd-cli

Have you ever found yourself constantly doing ls cd ls cd ls cd? Well have I got a solution for you!

Rather than using something like cd $(fzf) where you have to manually search for the directory, this tool works off of numbering and progressively revealing layers of directories.

Path: /current/working/dir
Commands: [1..3] select, [b] back, [q] quit

 1. src
 2. docs
 3. target
>

Installation

cargo install nd-cli

Setup shell

Run the following command for your shell, this will add the nd command to your config allowing you to navigate to the directory after quitting.

# zsh
echo 'eval "$(nd-cli init zsh)"' >> ~/.zshrc
source ~/.zshrc

# bash
echo 'eval "$(nd-cli init bash)"' >> ~/.bashrc
source ~/.bashrc

# fish
echo 'nd-cli init fish | source' >> ~/.config/fish/config.fish
source ~/.config/fish/config.fish

# powershell
Add-Content -Path $PROFILE -Value 'Invoke-Expression (& nd init powershell)'
. $PROFILE

Usage

nd

Commands:

  • 1..N select a directory
  • b go to parent directory
  • q quit and print selected path

Flags:

  • --show-hidden include directories that start with .
  • --start-dir <PATH> start browsing from a specific directory
  • --no-color disable ANSI color output