A simple tool to list all directories in pwd and cd into them with just a number. (Compatible with Bash and Zsh)
Simply copy and paste the following commands one-by-one to install the tool-
cd ~/Downloads
git clone https://github.com/AviusX/linux-navigator/
cd linux-navigator
source install.sh
That's it! Now you can glide your way around directories with the nn
command. See nn --help
or see usage below.
If you get permission denied
, then make the script executable by running
chmod +x ./install.sh
- After installation, simple run
nn
in any directory to view all directories in your pwd. - Enter the directory number to go into that directory.
- Once you reach your desired directory, enter any letter to stop.
- Type
nn -a
ornn --all
to view all directories (both hidden and non-hidden). - Navigate the same way as you would with general usage.
Viewing hidden directories only
- Type
nn -h
ornn --hidden
to view hidden directories only. - Navigate the same way as you would with general usage.
- Type
nn --help
to print help and view command usage and options.
To uninstall, copy and paste the following command-
source ~/.navigator-home/uninstall.sh
That's it!