Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yggdr/xontrib-dotdot
Better aliases['..'] = 'cd ..'
https://github.com/yggdr/xontrib-dotdot
xonsh xontrib
Last synced: about 1 month ago
JSON representation
Better aliases['..'] = 'cd ..'
- Host: GitHub
- URL: https://github.com/yggdr/xontrib-dotdot
- Owner: yggdr
- License: isc
- Created: 2024-03-20T23:14:18.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-03-21T19:36:57.000Z (9 months ago)
- Last Synced: 2024-10-31T08:04:51.997Z (about 1 month ago)
- Topics: xonsh, xontrib
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-xontribs - dotdot - "...." -> "cd ../../..". (Directory Navigation)
README
Better aliases['..'] = 'cd ..'## Installation
To install use pip:
```xsh
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```xsh
$XONTRIBS_AUTOLOAD_DISABLED = {"dotdot", }
```Now going up in directories can be simply done by chaining dots:
```xsh
$ 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](https://github.com/xonsh/xontrib-template).