essential-pathway

Manage your most commonly used directories in command line, requires the tcl edition Environment Module.


Keywords
ep
License
LGPL-3.0
Install
pip install essential-pathway==1.0.2

Documentation

Essential-pathway Documentation

Quick Links

  • Project <https://github.com/realasking/essential-pathway>
  • Author's Homepage <https://realasking.wordpress.com>
  • Author's Emails <realasking@gmail.com,tomwangsim@163.com>
  • Manual of Environment Modules <http://modules.sourceforge.net/tcl/module.html>

Introduction

Essential-pathway (short for ep) is a tool that helps people quickly access to their most commonly used folders in command line in some operation systems like linux. A PATHWAY is defined as a user named environment variable using this tool, which consists of a pathway name, a path and a comment. One can add, modify or delete PATHWAYS which linked to their folders' paths, or do some comments for memory.

This tool has only been tested in archlinux and might not be able to use under root. It's based on Environment Modules (short for em) and is released under LGPLv3.

Dependencies

The native Tcl version Environment Modules package is needed by this tool, while a $HOME/.modulespath with a contained user modulefiles folder should also be created by user before using ep.

An example of $HOME/.modulespath:

modules

And a folder name modules should be created in $HOME/

After that, the following sentences must be add to $HOME/.bashrc to keep em works properly:

export MODULEPATH=${HOME}/modules:$MODULEPATH <br>
source /etc/modules-tcl/init/bash<br>

Prettytable, an elegant table processing python library is also needed.

Ep can be installed when all dependencies are met.

Installation

git clone https://github.com/realasking/essential-pathway.git 
cd essential-pathway 
sudo python ./setup.py install 

Or you can use pip

pip install essential-pathway 

Usage

Notice:
Before each operations below, please execute 'module unload epath' first.
To make pathways usable, please execute 'module load epath' or add this sentence to $HOME/.bashrc.
'ep u' just delete epath, and will keep the database file in $HOME/.ep.

Quckly add current foler to a pathway

ep a PATHWAY_NAME

Listing exsit pathways

ep l

Create a pathway

ep a PATHWAY_NAME PATH_TO_YOUR_FOLDER

Make or change a short comment for an exists pathway

ep c PATHWAY_NAME 

Modify a pathway

ep m PATHWAY_NAME PATH_TO_NEW_FOLDER

Delete a pathway

ep d PATHWAY_NAME 

Check paths' availabilities and automatic delete invalid ones

ep k

Refresh the Env-module

ep r

Backup settings

ep b 

Uninstall all settings

ep u 

When the module epath has been loaded, one can use "$PATHWAY_NAME" instead of the whole path, the "" pair cannot be omitted if there are blank spaces in the path.

realasking Aug 15,2017