Skip to main content

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


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.5.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xontrib_back2dir-0.0.5-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file xontrib-back2dir-0.0.5.tar.gz.

File metadata

  • Download URL: xontrib-back2dir-0.0.5.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

Hashes for xontrib-back2dir-0.0.5.tar.gz
Algorithm Hash digest
SHA256 85bf98caaf029676fd60e49a8f87640105762737407bd6aa90e938cfb7424040
MD5 5cc9f0f6e52948c49f8d0f1f50c8482e
BLAKE2b-256 fce6d372779320e32c054aac89634de8b7d4cecdbe0c170a017dd00909e38df7

See more details on using hashes here.

File details

Details for the file xontrib_back2dir-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: xontrib_back2dir-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 3.1 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

Hashes for xontrib_back2dir-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 9a1258846e6c0cd073c6f7c8d366b8c3c64df93c3ca76bada258a0d16eb64f43
MD5 839452a108eb7e6d450eb220e8a43910
BLAKE2b-256 9caabad26ff287399c932fad3d0d4cee5b342389648fee7707a4ffaf94f911f7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page