Skip to main content

Navigate through the directories via command line as in file manager!

Project description

DIRectory hiSTORY

Navigate through the directories via command line as in file manager!

Have you ever wanted a back and forward button in your terminal to navigate back and forth? Dirstory allows it!

Short description

Dirstory allows you to move in previously visited directories just like in file manager. It's very similar to navigating back and forth between web pages in your web browser.

Table of contents

Requirements

  • bash
  • pip

Installation

To install dirstory, you need to firstly install the cli and then run the post-install script via command dirstory install to make the dirstory work properly.

Installation of the cli

From PyPi:

$ pip install --user dirstory

Or you can install dirstory from the git repository:

$ pip install --user git+https://github.com/nikromen/dirstory

Running the post-install script

After successful installation of the cli, run this command:

$ dirstory install

Note: what dirstory's post install script does

Please note that dirstory needs to add additional functionality to the built-in shell command cd to trace in which directories have you been to redirect you there later.

If you already added some functionality to the built-in cd command, it's very likely that dirstory or your script won't work. In that case, please check out the redefinition of the cd command that dirstory does and you will need to merge this script with yours.

How to find location of _dirstorypatch

See the location of this script in your ~/.bashrc file. There should be a block added by dirstory with line: source /some/path/to/the/_dirstorypatch. You can edit this to make your and dirstory's script work properly.

Usage

dirstory consist of two main commands

b

Goes to a previously visited directories.

Options:
    INTEGER     Goes back by N steps.
    -l INTEGER  Show last N directiories where you were.
    --help      Show this message and exit.

f

Goes to a previously backed directories.

Options:
    INTEGER     Goes forward by N steps.
    -l INTEGER  Show last N directiories which you backed.
    --help      Show this message and exit.

If you want to go back by one step, just simply use:

$ b

and similarly to go forward by one step:

$ f

Contribution guideline

TODO

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dirstory-0.1.1.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

dirstory-0.1.1-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file dirstory-0.1.1.tar.gz.

File metadata

  • Download URL: dirstory-0.1.1.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for dirstory-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b6cf7bafd896bfdba8f671647ed357880331a5dd06829c0f533029cc0a4bfe9c
MD5 3975a4832571a30d2004cc530c7b5e34
BLAKE2b-256 33650b3b87cf31f06a7c30823036d8c73ffa0ab6c13ff8b8322a3de99e3b18ef

See more details on using hashes here.

File details

Details for the file dirstory-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: dirstory-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for dirstory-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d9b1f9ca737b60311189cd8968b98bf23582927a7fa9f72dc91125eaa9cb4133
MD5 c2e5b312a9d4f2f18de889b1498a5d88
BLAKE2b-256 e3a56292a682943f9c1139cb52721ccf30e19ac2645b34fd780b2dc4be758a2f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page