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

Links

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.1.0.tar.gz (3.1 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.1.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: xontrib-back2dir-0.1.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0

File hashes

Hashes for xontrib-back2dir-0.1.0.tar.gz
Algorithm Hash digest
SHA256 846fd01013dea4f8b724efa1d34625d44fb6d7af5261116faa6825d983b97a6a
MD5 e3b93ff5fb6e15b767dc270068107a65
BLAKE2b-256 ab7f3c172a8d569793dc9d1c7bb7b483e60ce56bd3eb62f458ab7cd7771c9c95

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xontrib_back2dir-0.1.0-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.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0

File hashes

Hashes for xontrib_back2dir-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 71e23fce2e3fcdf43509b709e93343ff39cb128714236c339cdbdbbca09332fe
MD5 3ed7b68b524d7c0b4a078b2ab60b9f20
BLAKE2b-256 548e79e6275e4ed6d6c14dece928e99b0f35788b4bf51858cd0f11ec1043c231

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