mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
Fix auto-completion for portinstall and /usr/ports/INDEX-*.
PR: ports/103550 Submitted by: Jeppe Larsen <jwl@io.dk> Approved by: Kirk Strauser <kirk@strauser.com> (maintainer)
This commit is contained in:
parent
d5084d308e
commit
3001068268
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=174705
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= bash-completion
|
||||
PORTVERSION= 20060301
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= shells
|
||||
MASTER_SITES= http://www.caliban.org/files/bash/
|
||||
|
||||
|
19
shells/bash-completion-classic/files/patch-bash_completion
Normal file
19
shells/bash-completion-classic/files/patch-bash_completion
Normal file
@ -0,0 +1,19 @@
|
||||
--- bash_completion.old Sat Sep 23 20:42:29 2006
|
||||
+++ bash_completion Sun Sep 24 10:55:26 2006
|
||||
@@ -5485,14 +5485,10 @@
|
||||
local cur portsdir prev indexfile
|
||||
local -a COMPREPLY2
|
||||
|
||||
- portsdir=${PORTSDIR:-/usr/ports}/
|
||||
+ portsdir=${PORTSDIR:-/usr/ports}
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||
- # First try INDEX-5
|
||||
- indexfile=$portsdir/INDEX-5
|
||||
- # Then INDEX if INDEX-5 does not exist or system is not FreeBSD 5.x
|
||||
- [ "${OSTYPE%.*}" = "freebsd5" -a -f $indexfile ] ||
|
||||
- indexfile=$portsdir/INDEX
|
||||
+ indexfile="${portsdir}/INDEX-${OSTYPE:7:1}"
|
||||
|
||||
[ "$prev" = "-l" -o "$prev" = "-L" -o "$prev" = "-o" ] && return 0
|
||||
|
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= bash-completion
|
||||
PORTVERSION= 20060301
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= shells
|
||||
MASTER_SITES= http://www.caliban.org/files/bash/
|
||||
|
||||
|
19
shells/bash-completion/files/patch-bash_completion
Normal file
19
shells/bash-completion/files/patch-bash_completion
Normal file
@ -0,0 +1,19 @@
|
||||
--- bash_completion.old Sat Sep 23 20:42:29 2006
|
||||
+++ bash_completion Sun Sep 24 10:55:26 2006
|
||||
@@ -5485,14 +5485,10 @@
|
||||
local cur portsdir prev indexfile
|
||||
local -a COMPREPLY2
|
||||
|
||||
- portsdir=${PORTSDIR:-/usr/ports}/
|
||||
+ portsdir=${PORTSDIR:-/usr/ports}
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||
- # First try INDEX-5
|
||||
- indexfile=$portsdir/INDEX-5
|
||||
- # Then INDEX if INDEX-5 does not exist or system is not FreeBSD 5.x
|
||||
- [ "${OSTYPE%.*}" = "freebsd5" -a -f $indexfile ] ||
|
||||
- indexfile=$portsdir/INDEX
|
||||
+ indexfile="${portsdir}/INDEX-${OSTYPE:7:1}"
|
||||
|
||||
[ "$prev" = "-l" -o "$prev" = "-L" -o "$prev" = "-o" ] && return 0
|
||||
|
Loading…
Reference in New Issue
Block a user