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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file xontrib-dotdot-0.1.0.tar.gz.

File metadata

  • Download URL: xontrib-dotdot-0.1.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for xontrib-dotdot-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4534fea22b494908421ef49fec3755e090e6e6349ecde1bdda9e2152a4c88dd1
MD5 c67d75d6e3f9eb0a85d883270e6e0bd3
BLAKE2b-256 cf9a34589d7fd0680e5197b51d9a645c12e77dc10cfe8a32a0efe23161a06cb8

See more details on using hashes here.

File details

Details for the file xontrib_dotdot-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for xontrib_dotdot-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 064673b071ad084856b93a273a5adf2967a0502e1f963a981145578df404c0f1
MD5 1b66eceb8ad36736a2139e25b8bbc6a2
BLAKE2b-256 c0a7e3a9ba64944094d75b12b2c446e1a0d5ee87e595ca54333268e67a376de2

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