Skip to main content

Better aliases['..'] = 'cd ..'

Project description

Better aliases['..'] = 'cd ..'

Installation

To install use pip:

xpip install xontrib-dotdot
# or: xpip install -U git+https://github.com/yggdr/xontrib-dotdot

Usage

This xontrib will get loaded automatically for interactive sessions. To stop this, set

$XONTRIBS_AUTOLOAD_DISABLED = {"dotdot", }

Now going up in directories can be simply done by chaining dots:

% pwd
/some/deep/nested/directory/structure/I/want/to/leave
$ .....
$ pwd
/some/deep/nested/directory/structure/

The first two dots takes you to the parent, any further dot will go up one more.

Dots and commas can be freely mixed, the above example could've also been achieved by typing ..,,.. This behaviour can be changed by setting the $XONTRIB_DOTDOT_COMMA environment variable to False

Credits

This package was created with xontrib template.

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

xontrib-dotdot-0.1.0.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

xontrib_dotdot-0.1.0-py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 3

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