diff options
author | Joshua Elliott <joshuacelliott@gmail.com> | 2015-07-30 16:04:39 -0600 |
---|---|---|
committer | Joshua Elliott <joshuacelliott@gmail.com> | 2015-07-30 16:04:39 -0600 |
commit | bc7eb397818774d5d5bd95f48eaa7508b5808d53 (patch) | |
tree | 86186cd0be8cd52c2b4b9d2a7882a0dce6b5eb43 /share/completions/python2.fish | |
parent | 299a383d98f67fdd8ec5ce91f72b5d560ef4441e (diff) |
Improve completion for python -m flag
Diffstat (limited to 'share/completions/python2.fish')
-rw-r--r-- | share/completions/python2.fish | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/completions/python2.fish b/share/completions/python2.fish index 3064545a..4e2fc5f3 100644 --- a/share/completions/python2.fish +++ b/share/completions/python2.fish @@ -1,3 +1,3 @@ complete -c python2 -w python # Override this to use python2 instead of python -complete -c python2 -s m -d 'Run library module as a script (terminates option list)' -xa "( find /usr/lib/(eval python2 -V 2>| sed 's/ //; s/\..\$//; s/P/p/') \$PYTHONPATH -maxdepth 1 -name '*.py' -printf '%f\n' | sed 's/.py//')" +complete -c python2 -s m -d 'Run library module as a script (terminates option list)' -xa '(python2 -c "import pkgutil; print(\'\n\'.join([p[1] for p in pkgutil.iter_modules()]))")' |