Back to directory.
Project description
Back to the latest used directory when starting xonsh shell.
If you like the idea click ⭐ on the repo and stay tuned.
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
Credits
This package was created with xontrib cookiecutter 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
File details
Details for the file xontrib-back2dir-0.0.6.tar.gz
.
File metadata
- Download URL: xontrib-back2dir-0.0.6.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11bdd235a0d20d0e72d4f129d535f6559846cb46029d51ab2912f65229f8c8dc |
|
MD5 | 781b8669030f235b875bd55c983787d6 |
|
BLAKE2b-256 | 3b6620d3fc38c49196def82c61474e92ac6aefe5394e83c9704fe4615eb444b9 |
File details
Details for the file xontrib_back2dir-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: xontrib_back2dir-0.0.6-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e2e1744c21bfbe45b2c4854e335244765ade6c3f4dc5ac9498a728e61344cd7 |
|
MD5 | 6f580464c8d6076bdd342d33c3821dd3 |
|
BLAKE2b-256 | 47bcea887c9e6612dc7c66109a123cf8490e52cf1935df94858c7891547560c9 |