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 last 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
xontrib-back2dir-0.0.2.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for xontrib_back2dir-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1a2054546401e07e66e7457d0acbb1ea529e7ccbc7870e257d519ce5751b4f6 |
|
MD5 | 1c31bc960ac42a83bf4c7c8321cc54e8 |
|
BLAKE2b-256 | 7e0f2a77922e0f16fd30582c3863595be314907aa9e449df874f04dd54c50ba3 |