fish-shell/share/completions/python2.fish

4 lines
261 B
Fish
Raw Normal View History

2015-07-20 18:33:34 +08:00
complete -c python2 -w python
# Override this to use python2 instead of python
2015-07-31 06:04:39 +08:00
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()]))")'