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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: xontrib-back2dir-0.0.3.tar.gz
  • Upload date:
  • Size: 3.1 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.3.tar.gz
Algorithm Hash digest
SHA256 03f5e53610a5fedf4d2c645001d53f9f50337e943e78af9cc19eb14f6234fd9e
MD5 1aa8bc2cafbad21caa7217809deb1368
BLAKE2b-256 0c86bafd5bf7f073d7d06bea1b411bcc846bf7eaef48cdf5251b7a84e857262f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xontrib_back2dir-0.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b67b984d4378e944ac275c9f3c63fea13eaf61076b28ef5fb9166b8b1574a380
MD5 f04923ddb22455100a1a33ccd9e9a32f
BLAKE2b-256 ac0566049394a13cda1060274e9d222b4b6048d34b1a72fc04283094d9b0b422

See more details on using hashes here.

Supported by

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