Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xonsh/xontrib-free-cwd
To release the lock on the current directory whenever the prompt is shown in xonsh shell. Windows only xontrib.
https://github.com/xonsh/xontrib-free-cwd
windows xonsh xontrib
Last synced: 3 months ago
JSON representation
To release the lock on the current directory whenever the prompt is shown in xonsh shell. Windows only xontrib.
- Host: GitHub
- URL: https://github.com/xonsh/xontrib-free-cwd
- Owner: xonsh
- License: mit
- Created: 2023-02-16T06:14:23.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-29T17:54:43.000Z (6 months ago)
- Last Synced: 2024-05-21T06:56:02.898Z (6 months ago)
- Topics: windows, xonsh, xontrib
- Language: Python
- Homepage:
- Size: 15.6 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-xontribs - free_cwd - This will release the lock on the current directory whenever the prompt is shown. (Directory Navigation)
README
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:
```bash
xpip install xontrib-free-cwd
# or: xpip install -U git+https://github.com/xonsh/xontrib-free-cwd
```## Usage
```bash
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](https://github.com/xonsh/xontrib-template).