aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/completions/python3.fish
diff options
context:
space:
mode:
authorGravatar Fabian Homborg <FHomborg@gmail.com>2015-07-20 12:33:34 +0200
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2015-07-20 15:19:03 -0700
commitf70b1ffbbfb2cf67129eb35408055416c6d9bab5 (patch)
tree560edc07988c8fa5d3d97f2665405412c44dd80b /share/completions/python3.fish
parent8a9b7dc63ad6a21c13184332edbec562d322d889 (diff)
Normalize python* completion
Diffstat (limited to 'share/completions/python3.fish')
-rw-r--r--share/completions/python3.fish4
1 files changed, 3 insertions, 1 deletions
diff --git a/share/completions/python3.fish b/share/completions/python3.fish
index 983b0e74..a90c40a1 100644
--- a/share/completions/python3.fish
+++ b/share/completions/python3.fish
@@ -1,2 +1,4 @@
-__fish_complete_python python3
+complete -c python3 -w python
+# Override this to use python2 instead of python
+complete -c python3 -s m -d 'Run library module as a script (terminates option list)' -xa "( find /usr/lib/(eval python3 -V 2>| sed 's/ //; s/\..\$//; s/P/p/') \$PYTHONPATH -maxdepth 1 -name '*.py' -printf '%f\n' | sed 's/.py//')"