Last active
November 17, 2020 01:17
-
-
Save devilholk/d1dcbb194086c84915c718d9ccafd95a to your computer and use it in GitHub Desktop.
Wrapper for using python for bash completion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#bashcomp.py: https://gist.github.com/devilholk/b176b9c62c83636eb7552b3629e0b067 | |
_bashcomp() { | |
COMPREPLY=( $(eval `python /path/to/bashcomp.py $COMP_LINE`;) ); | |
return 0; | |
} | |
complete -F _bashcomp my_command |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment