Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including khol with all npm packages installed. Try it out:

var khol = require("khol")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

khol v1.5.0

A command line utility for performing directory related tasks easily in linux

khol NPM version Build Status Dependency Status Coverage percentage

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:

  1. Opening the directory in GUI method.
  2. Saving the long directory path into a short one.
  3. 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

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free