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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4534fea22b494908421ef49fec3755e090e6e6349ecde1bdda9e2152a4c88dd1
|
|
| MD5 |
c67d75d6e3f9eb0a85d883270e6e0bd3
|
|
| BLAKE2b-256 |
cf9a34589d7fd0680e5197b51d9a645c12e77dc10cfe8a32a0efe23161a06cb8
|
File details
Details for the file xontrib_dotdot-0.1.0-py3-none-any.whl.
File metadata
- Download URL: xontrib_dotdot-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
064673b071ad084856b93a273a5adf2967a0502e1f963a981145578df404c0f1
|
|
| MD5 |
1b66eceb8ad36736a2139e25b8bbc6a2
|
|
| BLAKE2b-256 |
c0a7e3a9ba64944094d75b12b2c446e1a0d5ee87e595ca54333268e67a376de2
|