summaryrefslogtreecommitdiff
path: root/shells/bash-completion/files/patch-reptyr
blob: eacb1f8e4c4cf24aad58d7ad9ca4070e80497c73 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
From 6a4ad49fa53cc92d3bd23b5b4db0b3318f2ef136 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ville=20Skytt=C3=A4?= <ville.skytta@iki.fi>
Date: Tue, 3 Feb 2015 07:55:22 +0200
Subject: reptyr: Rename file to _reptyr to avoid conflict with upstreamed
 completion

https://github.com/nelhage/reptyr/pull/53
---
 completions/Makefile.am |  2 +-
 completions/_reptyr     | 26 ++++++++++++++++++++++++++
 completions/reptyr      | 23 -----------------------
 3 files changed, 27 insertions(+), 24 deletions(-)
 create mode 100644 completions/_reptyr
 delete mode 100644 completions/reptyr

--- completions/Makefile.am
+++ completions/Makefile.am
@@ -303,7 +303,7 @@ bashcomp_DATA = 2to3 \
 		_renice \
 		_repomanage \
 		reportbug \
-		reptyr \
+		_reptyr \
 		resolvconf \
 		rfkill \
 		ri \
--- /dev/null
+++ completions/_reptyr
@@ -0,0 +1,26 @@
+# bash completion for reptyr(1)                            -*- shell-script -*-
+
+# Use of this file is deprecated.  Upstream completion is available in
+# reptyr > 0.6.2, use that instead.
+
+_reptyr()
+{
+    local cur prev words cword
+    _init_completion || return
+
+    case $prev in
+        -l)
+            return 0
+            ;;
+    esac
+
+    if [[ $cur == -* ]]; then
+        COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
+        return 0
+    fi
+
+    [[ $prev != +([0-9]) ]] && _pids
+} &&
+complete -F _reptyr reptyr
+
+# ex: ts=4 sw=4 et filetype=sh
--- completions/reptyr
+++ /dev/null
@@ -1,23 +0,0 @@
-# bash completion for reptyr(1)                            -*- shell-script -*-
-
-_reptyr()
-{
-    local cur prev words cword
-    _init_completion || return
-
-    case $prev in
-        -l)
-            return 0
-            ;;
-    esac
-
-    if [[ $cur == -* ]]; then
-        COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
-        return 0
-    fi
-
-    [[ $prev != +([0-9]) ]] && _pids
-} &&
-complete -F _reptyr reptyr
-
-# ex: ts=4 sw=4 et filetype=sh
-- 
cgit v0.11.2