{"repo":"sio/bash-complete-partial-path","free":true,"listed":false,"github":"https://github.com/sio/bash-complete-partial-path","clone":"git clone https://github.com/sio/bash-complete-partial-path.git","description":"Enhanced file path completion in bash (like in zsh)","language":"Python","stars":60,"topics":["bash","cli","completion","shell"],"license":"Apache-2.0","category":"cli-tools","readme_excerpt":"Enhanced file path completion in bash This project adds incomplete file path expansion to bash (the feature that was originally unique to zsh). When the Tab key is pressed bash expands only the last piece of the path by default, but with the completion functions from this project it will assume any of path elements might be incomplete. For example: cd /u/s/app will produce nothing by default, but will be expanded to cd /usr/share/applications if you've configured bash to load this file. Introductory overview is available at author's blog. Watch a demo screencast to see this feature in action: To enable the described behavior source [ this file ][main] from your /.bashrc and run bcpp --defaults . Supported features are: - Special characters in completed path are automatically escaped if present - Tilde expressions are properly expanded (as per [bash documentation]) - If user had started writing the path in quotes, no character escaping is applied. Instead the quote is closed with a matching character after expanding the path. - If [bash-completion] package is already in use, this code will safely override its filedir function. No extra configuration is required, just make sure you source this project after the main bash-completion. Completion functions have been tested and reported to work on: - Linux (Debian 9, 10, 11) - macOS (requires gnu-sed from brew) - Windows (msys2, Git for Windows) Automated tests are continuously executed on Linux, FreeBSD, macOS and Windows (msys2).","default_branch":null,"files":null,"tree":[],"storefront":"/r/sio","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sio/bash-complete-partial-path/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}