khol
A command line utility for performing directory related tasks easily in linux
Installation
# install the module globally
$ npm install --global khol
Info:
This package comes has 3 operations:
- Opening the directory in GUI method.
- Saving the long directory path into a short one.
- Opening the long directory path using a short name of your choice in GUI method.
Usage
Opening the directory in GUI method:
$ khol <file_name> # or <file_path>
Example
To open current directory in GUI, you can use:
$ khol ./Videos # opens the Videos folder in your current directory
# or
$ khol . # opens the current directory in GUI
Saving the long directory path into a short one.
$ sd <file_path>
# or
$ savedir <file_path>
Example
$ sd ./Videos/Movies/Bollywood/NewCollection/AkshayKumar ak_movies # saves the long path by mapping it to `ak_movies`.
# or
$ savedir ./Videos/Movies/Bollywood/NewCollection/AkshayKumar ak_movies # saves the long path by mapping it to `ak_movies`.
- Opening the long directory path using a short name of your choice in GUI method.
$ goto <short_name>
Example
Opening the long directory path using a short name of your choice in GUI method.
$ goto ak_movies # opens this `./Videos/Movies/Bollywood/NewCollection/AkshayKumar` path in GUI method.
License
MIT © Amit Upadhyay