aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/completions/python2.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/python2.fish
parent8a9b7dc63ad6a21c13184332edbec562d322d889 (diff)
Normalize python* completion
Diffstat (limited to 'share/completions/python2.fish')
-rw-r--r--share/completions/python2.fish4
1 files changed, 3 insertions, 1 deletions
diff --git a/share/completions/python2.fish b/share/completions/python2.fish
index 223d92d8..3064545a 100644
--- a/share/completions/python2.fish
+++ b/share/completions/python2.fish
@@ -1 +1,3 @@
-__fish_complete_python python2
+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//')"