Skip to content

nasserkessas/directory-navigation-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

nv - Directory save/navigation tool

A program written in c to save and navigate directories easily. Directories can be saved with an access name to be navigated to at a later time. Directories and names are saved in a .nvsave file in the user's home directory.

Run

$ nv

Install

Compile:

gcc -o bin/nv main.c

Copy to /usr/bin (to exectute like $ nv)

cp ./bin/nv /usr/bin

Change file permissions

chmod 755 /usr/bin/nv

Usage

store

Stores current directory with an incremented number as the key

Options

  • -a "NAME" Adds the current directory with NAME as the key

 `--set-default`: Sets added directory to default position + `-d` "NAME": Deletes directory with key NAME + `-l`: Lists all stored directories and keys + `-f`: Prints save file location

move

Changes directory to default or first listed directory

Options

  • -n "NAME" Changes directory to stored value with key NAME

Todo

  • Convert to bash script?

Acknoledgements

Created by Nasser Kessas

Contributing

PRs accepted, feel free to dive in! Open an issue or submit PRs.

Directory Navigation Tool (nv) follows the Contributor Covenant Code of Conduct.

About

A simple tool to save and navigate to directories in Linux

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages