Line 0
Link Here
|
|
|
1 |
From 6a4ad49fa53cc92d3bd23b5b4db0b3318f2ef136 Mon Sep 17 00:00:00 2001 |
2 |
From: =?UTF-8?q?Ville=20Skytt=C3=A4?= <ville.skytta@iki.fi> |
3 |
Date: Tue, 3 Feb 2015 07:55:22 +0200 |
4 |
Subject: reptyr: Rename file to _reptyr to avoid conflict with upstreamed |
5 |
completion |
6 |
|
7 |
https://github.com/nelhage/reptyr/pull/53 |
8 |
--- |
9 |
completions/Makefile.am | 2 +- |
10 |
completions/_reptyr | 26 ++++++++++++++++++++++++++ |
11 |
completions/reptyr | 23 ----------------------- |
12 |
3 files changed, 27 insertions(+), 24 deletions(-) |
13 |
create mode 100644 completions/_reptyr |
14 |
delete mode 100644 completions/reptyr |
15 |
|
16 |
--- completions/Makefile.am |
17 |
+++ completions/Makefile.am |
18 |
@@ -303,7 +303,7 @@ bashcomp_DATA = 2to3 \ |
19 |
_renice \ |
20 |
_repomanage \ |
21 |
reportbug \ |
22 |
- reptyr \ |
23 |
+ _reptyr \ |
24 |
resolvconf \ |
25 |
rfkill \ |
26 |
ri \ |
27 |
--- /dev/null |
28 |
+++ completions/_reptyr |
29 |
@@ -0,0 +1,26 @@ |
30 |
+# bash completion for reptyr(1) -*- shell-script -*- |
31 |
+ |
32 |
+# Use of this file is deprecated. Upstream completion is available in |
33 |
+# reptyr > 0.6.2, use that instead. |
34 |
+ |
35 |
+_reptyr() |
36 |
+{ |
37 |
+ local cur prev words cword |
38 |
+ _init_completion || return |
39 |
+ |
40 |
+ case $prev in |
41 |
+ -l) |
42 |
+ return 0 |
43 |
+ ;; |
44 |
+ esac |
45 |
+ |
46 |
+ if [[ $cur == -* ]]; then |
47 |
+ COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) ) |
48 |
+ return 0 |
49 |
+ fi |
50 |
+ |
51 |
+ [[ $prev != +([0-9]) ]] && _pids |
52 |
+} && |
53 |
+complete -F _reptyr reptyr |
54 |
+ |
55 |
+# ex: ts=4 sw=4 et filetype=sh |
56 |
--- completions/reptyr |
57 |
+++ /dev/null |
58 |
@@ -1,23 +0,0 @@ |
59 |
-# bash completion for reptyr(1) -*- shell-script -*- |
60 |
- |
61 |
-_reptyr() |
62 |
-{ |
63 |
- local cur prev words cword |
64 |
- _init_completion || return |
65 |
- |
66 |
- case $prev in |
67 |
- -l) |
68 |
- return 0 |
69 |
- ;; |
70 |
- esac |
71 |
- |
72 |
- if [[ $cur == -* ]]; then |
73 |
- COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) ) |
74 |
- return 0 |
75 |
- fi |
76 |
- |
77 |
- [[ $prev != +([0-9]) ]] && _pids |
78 |
-} && |
79 |
-complete -F _reptyr reptyr |
80 |
- |
81 |
-# ex: ts=4 sw=4 et filetype=sh |
82 |
-- |
83 |
cgit v0.11.2 |
84 |
|