forked from pool/bash-completion
.
OBS-URL: https://build.opensuse.org/package/show/shells/bash-completion?expand=0&rev=56
This commit is contained in:
parent
a87b3e77d2
commit
808517c9f0
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 15 08:28:30 UTC 2015 - werner@suse.de
|
||||||
|
|
||||||
|
- Add patch ls-completion-boo889319.patch to make ls completion
|
||||||
|
more smart (boo#889319)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Mar 18 12:45:23 UTC 2015 - werner@suse.de
|
Wed Mar 18 12:45:23 UTC 2015 - werner@suse.de
|
||||||
|
|
||||||
|
@ -35,6 +35,8 @@ Patch2: PS1-completion-boo903362.patch
|
|||||||
Patch3: FOO-dir-completion-boo905348.patch
|
Patch3: FOO-dir-completion-boo905348.patch
|
||||||
# PATCH-FIX-SUSE boo#922758 -- avoid negative cword position counter
|
# PATCH-FIX-SUSE boo#922758 -- avoid negative cword position counter
|
||||||
Patch4: init-completion-boo922758.patch
|
Patch4: init-completion-boo922758.patch
|
||||||
|
# PATCH-FIX-SUSE boo#889319
|
||||||
|
Patch5: ls-completion-boo889319.patch
|
||||||
BuildRequires: pkg-config
|
BuildRequires: pkg-config
|
||||||
Requires: bash
|
Requires: bash
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
@ -51,6 +53,7 @@ of the programmable completion feature of Bash 2.04 and later.
|
|||||||
%patch2 -b .p2
|
%patch2 -b .p2
|
||||||
%patch3 -b .p3
|
%patch3 -b .p3
|
||||||
%patch4 -b .p4
|
%patch4 -b .p4
|
||||||
|
%patch5 -b .p5
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure
|
%configure
|
||||||
|
29
ls-completion-boo889319.patch
Normal file
29
ls-completion-boo889319.patch
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
---
|
||||||
|
bash_completion | 10 ++++++++--
|
||||||
|
1 file changed, 8 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
--- bash_completion
|
||||||
|
+++ bash_completion 2015-06-15 08:24:25.093518526 +0000
|
||||||
|
@@ -1838,14 +1838,20 @@ _longopt()
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
# makeinfo and texi2dvi are defined elsewhere.
|
||||||
|
-complete -F _longopt -o filenames a2ps awk base64 bash bc bison cat colordiff cp csplit \
|
||||||
|
+complete -F _longopt filenames a2ps awk base64 bash bc bison cat colordiff cp csplit \
|
||||||
|
cut date df diff dir du enscript expand fmt fold gperf \
|
||||||
|
- grep grub head indent irb ld ldd less ln ls m4 md5sum mkdir mkfifo mknod \
|
||||||
|
+ grep grub head indent irb ld ldd less ln m4 md5sum mkdir mkfifo mknod \
|
||||||
|
mv nl nm objcopy objdump od paste pr ptx readelf rm rmdir \
|
||||||
|
sed sha{,1,224,256,384,512}sum shar sort split strip sum tac tail tee \
|
||||||
|
texindex touch tr unexpand uniq vdir wc who
|
||||||
|
complete -F _longopt -o default env netstat seq uname units
|
||||||
|
|
||||||
|
+if typeset -F _ls_ &> /dev/null; then
|
||||||
|
+ complete -o bashdefault -o default -o filenames -o nospace -F _ls_ ls ll la l ls-l lf
|
||||||
|
+else
|
||||||
|
+ complete -o bashdefault -o default -o filenames -o nospace -F _longopt ls ll la l ls-l lf
|
||||||
|
+fi
|
||||||
|
+
|
||||||
|
declare -A _xspecs
|
||||||
|
_filedir_xspec()
|
||||||
|
{
|
Loading…
x
Reference in New Issue
Block a user