Return to the most recently used directory when starting the xonsh shell.
If you like the idea click ⭐ on the repo and and tweet.
Installation
To install use pip:
xpip install xontrib-back2dir
# or: xpip install -U git+https://github.com/anki-code/xontrib-back2dir
echo "xontrib load back2dir" > ~/.xonshrc
Usage
No additional actions needed. The xontrib just saves the latest directory and uses it when xonsh starts:
bash ~ $ xonsh
xonsh ~ $ cd /etc
xonsh /etc $ exit # the latest directory is /etc
bash ~ $ xonsh
xonsh /etc $ # the latest directory
If you run xonsh not from the $HOME directory the latest directory will be ignored:
bash ~ $ cd /tmp
bash /tmp $ xonsh
xonsh /tmp $ # latest directory ignored
Links
- This package is the part of rc-awesome - awesome snippets of code for xonshrc in xonsh shell.
- This package is the part of ergopack - the pack of ergonomic xontribs.
- This package was created with xontrib cookiecutter template.
Metadata
Release files for xontrib-back2dir 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| xontrib_back2dir-0.1.3.tar.gz | 3.2 kB | Without provenance | Details for xontrib_back2dir-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| xontrib_back2dir-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for xontrib_back2dir-0.1.3-py3-none-any.whl |
Total release size: 6.6 kB
Release files / xontrib_back2dir-0.1.3.tar.gz
| Download URL | xontrib_back2dir-0.1.3.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
288adbf8918ac4604c65d5e9dcf8787044d6fd917fec0b628c0f9ff510ff71a2
|
|
BLAKE2b-256 checksum How to use checksums |
91cc6b452a0f83af0700265c78574fff4cfab9c5f74cae190c6e7fb310751fce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Release files / xontrib_back2dir-0.1.3-py3-none-any.whl
| Download URL | xontrib_back2dir-0.1.3-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
014aa8f8ec8965e720ff8fd40664fb17e57fb7243078b8d5fc6d29a2f74f1ce5
|
|
BLAKE2b-256 checksum How to use checksums |
21792b148597419b80f72312c5b69fc34535764ddaf8a47ccbe2e3558f9b3d5a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Security for xontrib-back2dir 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.