mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-05 17:00:58 +01:00
🐚 Python-powered shell. Full-featured and cross-platform.
artificial-intelligencebashclicommand-lineconsoledata-engineeringdata-sciencedevopsfishiterm2pythonraspberry-pisecurity-automationshellxonshzsh
![]() On Linux, if there's a foldername with a space in it, like "bad folder" then tab-completion using `cd` will wrap single quotes around the name, e.g. ``` cd bad(TAB) ``` completes to ``` cd 'bad folder/' ``` This behavior is encoded in `path_complete` in `completer.py`. But if you want to remove that poorly named folder, the argument to `rm` is completed by `bash_complete` which didn't have this tweak and so the result is ``` rm -r bad(TAB) ``` leads to ``` rm -r bad folder /usr/bin/rm: cannot remove 'bad': No such file or directory /usr/bin/rm: cannot remove 'folder/': No such file or directory ``` This tweaks the `bash_complete` function so that ``` rm -r bad(TAB) ``` returns ``` rm -r 'bad folder/' ``` |
||
---|---|---|
docs | ||
recipe | ||
scripts | ||
tests | ||
xonsh | ||
.appveyor.yml | ||
.binstar.yml | ||
.gitignore | ||
.landscape.yaml | ||
.travis.yml | ||
appveyor.yml | ||
binstar.yml | ||
CONTRIBUTING | ||
license | ||
logo.txt | ||
Makefile | ||
MANIFEST.in | ||
README.rst | ||
requirements.txt | ||
setup.py | ||
travis.yml |
xonsh ===== .. image:: https://travis-ci.org/scopatz/xonsh.svg?branch=master :target: https://travis-ci.org/scopatz/xonsh .. image:: https://ci.appveyor.com/api/projects/status/ufqtigii8ma3rctt/branch/master?svg=true :target: https://ci.appveyor.com/project/rbrewer123/xonsh-unq93 .. image:: https://landscape.io/github/scopatz/xonsh/master/landscape.svg?style=flat :target: https://landscape.io/github/scopatz/xonsh/master :alt: Code Health xonsh is a Python-ish, BASHwards-compatible shell language and command prompt. The language is a superset of Python 3.4 with additional shell primitives. xonsh (pronounced *conch*) is meant for the daily use of experts and novices alike. Please visit http://xonsh.org or http://xonsh.readthedocs.org for more information.