71 lines
2.1 KiB
Diff
71 lines
2.1 KiB
Diff
From f13d6bc1c1675eddf148db3d0b942872aef398ec Mon Sep 17 00:00:00 2001
|
|
From: renhongxun <renhongxun@h-partners.com>
|
|
Date: Mon, 20 Jun 2022 10:54:26 +0800
|
|
Subject: [PATCH] bash-completion remove python2
|
|
|
|
---
|
|
completions/Makefile.am | 4 +---
|
|
completions/Makefile.in | 4 +---
|
|
completions/python | 2 +-
|
|
3 files changed, 3 insertions(+), 7 deletions(-)
|
|
|
|
diff --git a/completions/Makefile.am b/completions/Makefile.am
|
|
index 723b42f..2d0c0f2 100644
|
|
--- a/completions/Makefile.am
|
|
+++ b/completions/Makefile.am
|
|
@@ -666,8 +666,6 @@ CLEANFILES = \
|
|
pypy3 \
|
|
pytest-2 \
|
|
pytest-3 \
|
|
- python2 \
|
|
- python2.7 \
|
|
python3 \
|
|
python3.3 \
|
|
python3.4 \
|
|
@@ -890,7 +888,7 @@ symlinks: $(DATA)
|
|
$(ss) pylint \
|
|
pylint-2 pylint-3
|
|
$(ss) python \
|
|
- micropython pypy pypy3 python2 python2.7 python3 python3.3 python3.4 python3.5 python3.6 python3.7 python3.8
|
|
+ micropython pypy pypy3 python3 python3.3 python3.4 python3.5 python3.6 python3.7 python3.8
|
|
$(ss) pyvenv \
|
|
pyvenv-3.4 pyvenv-3.5 pyvenv-3.6 pyvenv-3.7 pyvenv-3.8
|
|
$(ss) qdbus \
|
|
diff --git a/completions/Makefile.in b/completions/Makefile.in
|
|
index b8a439f..fe2ad1c 100644
|
|
--- a/completions/Makefile.in
|
|
+++ b/completions/Makefile.in
|
|
@@ -890,8 +890,6 @@ CLEANFILES = \
|
|
pypy3 \
|
|
pytest-2 \
|
|
pytest-3 \
|
|
- python2 \
|
|
- python2.7 \
|
|
python3 \
|
|
python3.3 \
|
|
python3.4 \
|
|
@@ -1332,7 +1330,7 @@ symlinks: $(DATA)
|
|
$(ss) pylint \
|
|
pylint-2 pylint-3
|
|
$(ss) python \
|
|
- micropython pypy pypy3 python2 python2.7 python3 python3.3 python3.4 python3.5 python3.6 python3.7 python3.8
|
|
+ micropython pypy pypy3 python3 python3.3 python3.4 python3.5 python3.6 python3.7 python3.8
|
|
$(ss) pyvenv \
|
|
pyvenv-3.4 pyvenv-3.5 pyvenv-3.6 pyvenv-3.7 pyvenv-3.8
|
|
$(ss) qdbus \
|
|
diff --git a/completions/python b/completions/python
|
|
index d50c18f..a8c17db 100644
|
|
--- a/completions/python
|
|
+++ b/completions/python
|
|
@@ -62,6 +62,6 @@ _python()
|
|
COMPREPLY=($(compgen -W '$(_parse_help "$1" -h)' -- "$cur"))
|
|
fi
|
|
} &&
|
|
- complete -F _python python python2 python2.7 python3 python3.{3..8} pypy pypy3 micropython
|
|
+ complete -F _python python python3 python3.{3..8} pypy pypy3 micropython
|
|
|
|
# ex: filetype=sh
|
|
--
|
|
1.8.3.1
|
|
|