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
Links
- This package is the part of ergopack - the pack of ergonomic xontribs.
- 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.1.0.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for xontrib_back2dir-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71e23fce2e3fcdf43509b709e93343ff39cb128714236c339cdbdbbca09332fe |
|
MD5 | 3ed7b68b524d7c0b4a078b2ab60b9f20 |
|
BLAKE2b-256 | 548e79e6275e4ed6d6c14dece928e99b0f35788b4bf51858cd0f11ec1043c231 |