Skip to main content

To release the lock on the current directory whenever the prompt is shown in xonsh shell. Windows only xontrib.

Project description

To release the lock on the current directory whenever the prompt is shown in xonsh shell. Windows only xontrib.

If you like the idea click ⭐ on the repo and tweet.

Installation

To install use pip:

xpip install xontrib-free-cwd
# or: xpip install -U git+https://github.com/xonsh/xontrib-free-cwd

Usage

xontrib load free_cwd

Enabling this will allow other programs or Windows Explorer to delete or rename the current or parent directories. Internally, it is accomplished by temporarily resetting CWD to the root drive folder while waiting at the prompt.

Known issues

This only works with the prompt_toolkit backend and can cause issues if any extensions are enabled that hook the prompt and relies on os.getcwd().

Credits

This package was created with xontrib 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-free-cwd-0.0.1.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

xontrib_free_cwd-0.0.1-py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 3

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