summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-shells/bash-completion/files/20050121')
-rw-r--r--app-shells/bash-completion/files/20050121/01_all_gkrellm.diff8
-rw-r--r--app-shells/bash-completion/files/20050121/02_all_cvs.diff11
-rw-r--r--app-shells/bash-completion/files/20050121/03_all_timidity.diff12
-rw-r--r--app-shells/bash-completion/files/20050121/04_all_mplayer.diff20
-rw-r--r--app-shells/bash-completion/files/20050121/05_all_muttng.diff69
-rw-r--r--app-shells/bash-completion/files/20050121/06_all_tar.diff13
-rw-r--r--app-shells/bash-completion/files/20050121/07_all_find.diff23
-rw-r--r--app-shells/bash-completion/files/20050121/08_all_lvm.diff29
8 files changed, 185 insertions, 0 deletions
diff --git a/app-shells/bash-completion/files/20050121/01_all_gkrellm.diff b/app-shells/bash-completion/files/20050121/01_all_gkrellm.diff
new file mode 100644
index 000000000000..d8e92af45d26
--- /dev/null
+++ b/app-shells/bash-completion/files/20050121/01_all_gkrellm.diff
@@ -0,0 +1,8 @@
+--- bash_completion.orig/contrib/gkrellm 2005-04-20 02:19:05.000000000 -0400
++++ bash_completion/contrib/gkrellm 2005-04-20 02:19:21.000000000 -0400
+@@ -33,4 +33,4 @@
+ fi
+
+ }
+-complete -F _gkrellm gkrellm
++complete -F _gkrellm gkrellm gkrellm2
diff --git a/app-shells/bash-completion/files/20050121/02_all_cvs.diff b/app-shells/bash-completion/files/20050121/02_all_cvs.diff
new file mode 100644
index 000000000000..529ec8f311a7
--- /dev/null
+++ b/app-shells/bash-completion/files/20050121/02_all_cvs.diff
@@ -0,0 +1,11 @@
+--- bash_completion.orig/bash_completion 2005-01-20 06:29:03.982356288 -0500
++++ bash_completion/bash_completion 2005-01-20 06:44:08.957779112 -0500
+@@ -1582,7 +1583,7 @@
+ COMPREPLY=( $( compgen -W '${changed[@]:-} \
+ ${newremoved[@]:-}' -- $cur ) )
+ else
+- _filedir
++ COMPREPLY=($(compgen $default -- "$cur"))
+ fi
+ else
+ COMPREPLY=( $( compgen -W '-n -R -l -f -F -m -r' -- \
diff --git a/app-shells/bash-completion/files/20050121/03_all_timidity.diff b/app-shells/bash-completion/files/20050121/03_all_timidity.diff
new file mode 100644
index 000000000000..8418cafa39e6
--- /dev/null
+++ b/app-shells/bash-completion/files/20050121/03_all_timidity.diff
@@ -0,0 +1,12 @@
+--- bash_completion.orig/bash_completion 2005-01-20 06:29:03.982356288 -0500
++++ bash_completion/bash_completion 2005-01-20 06:44:08.957779112 -0500
+@@ -105,7 +105,8 @@
+ complete -f -X '!*.@(ogg|OGG|m3u|flac|spx)' ogg123
+ complete -f -X '!*.@(mp3|MP3|ogg|OGG|pls|m3u)' gqmpeg freeamp
+ complete -f -X '!*.fig' xfig
+-complete -f -X '!*.@(mid?(i))' timidity playmidi
++complete -f -X '!*.@(mid?(i))' playmidi
++complete -f -X '!*.@(mid?(i)|rmi|RMI)' timidity
+ complete -f -X '*.@(o|so|so.!(conf)|a|tar?(.@(gz|bz2))|tgz|tbz2|rpm|zip|ZIP|gif|GIF|jp?(e)g|JP?(E)G|mp3|MP3|mp?(e)g|MPG|avi|AVI|asf|ASF|ogg|OGG|class|CLASS)' vi vim gvim rvim view rview rgvim rgview gview
+ complete -f -X '*.@(o|so|so.!(conf)|a|rpm|gif|GIF|jp?(e)g|JP?(E)G|mp3|MP3|mp?(e)g|MPG|avi|AVI|asf|ASF|ogg|OGG|class|CLASS)' emacs
+ complete -f -X '!*.@(exe|EXE|com|COM|scr|SCR)' wine
diff --git a/app-shells/bash-completion/files/20050121/04_all_mplayer.diff b/app-shells/bash-completion/files/20050121/04_all_mplayer.diff
new file mode 100644
index 000000000000..c6e3386f924c
--- /dev/null
+++ b/app-shells/bash-completion/files/20050121/04_all_mplayer.diff
@@ -0,0 +1,20 @@
+--- bash_completion.orig/bash_completion 2005-01-20 06:29:03.982356288 -0500
++++ bash_completion/bash_completion 2005-01-20 06:44:08.957779112 -0500
+@@ -5318,7 +5319,7 @@
+ return 0
+ ;;
+ -audiofile)
+- _filedir '@(mp3|MP3|mpg|MPG|ogg|OGG|wav|WAV)'
++ _filedir '@(mp3|MP3|mpg|MPG|ogg|OGG|wav|WAV|mid|MID)'
+ return 0
+ ;;
+ -font)
+@@ -5610,7 +5611,7 @@
+ -xvidencopts -of --verbose' -- $cur) )
+ ;;
+ *)
+- _filedir '@(mp?(e)g|MP?(E)G|wm[av]|WM[AV]|avi|AVI|asf|ASF|vob|VOB|bin|BIN|dat|DAT|vcd|VCD|ps|PS|pes|PES|fli|FLI|viv|VIV|rm?(j)|RM?(J)|ra?(m)|RA?(M)|yuv|YUV|mov|MOV|qt|QT|mp[34]|MP[34]|og[gm]|OG[GM]|wav|WAV|dump|DUMP|mkv|MKV|m4a|M4A|aac|AAC|m2v|M2V|dv|DV)'
++ _filedir '@(mp?(e)g|MP?(E)G|wm[av]|WM[AV]|avi|AVI|asf|ASF|vob|VOB|bin|BIN|dat|DAT|vcd|VCD|ps|PS|pes|PES|fli|FLI|viv|VIV|rm?(j)|RM?(J)|ra?(m)|RA?(M)|yuv|YUV|mov|MOV|qt|QT|mp[34]|MP[34]|og[gm]|OG[GM]|wav|WAV|dump|DUMP|mkv|MKV|m4a|M4A|aac|AAC|m2v|M2V|dv|DV|mid|MID|ts|TS)'
+ ;;
+ esac
+
diff --git a/app-shells/bash-completion/files/20050121/05_all_muttng.diff b/app-shells/bash-completion/files/20050121/05_all_muttng.diff
new file mode 100644
index 000000000000..9388a73510de
--- /dev/null
+++ b/app-shells/bash-completion/files/20050121/05_all_muttng.diff
@@ -0,0 +1,69 @@
+--- bash_completion.orig/bash_completion 2005-03-27 23:40:42.000000000 -0500
++++ bash_completion/bash_completion 2005-03-27 23:42:50.000000000 -0500
+@@ -4544,7 +4544,7 @@
+ #
+ # Mutt doesn't have an "addressbook" like Pine, but it has aliases and
+ # a "query" function to retrieve addresses, so that's what we use here.
+-have mutt && {
++have mutt || have muttng && {
+ _muttaddr()
+ {
+ _muttaliases
+@@ -4577,9 +4577,10 @@
+ local -a conffiles aliases
+ cur=${COMP_WORDS[COMP_CWORD]}
+
+- [ -f ~/.mutt/muttrc ] && muttrc="~/.mutt/muttrc"
+- [ -f ~/.muttrc ] && muttrc="~/.muttrc"
++ [ -f ~/.${muttcmd}/${muttcmd}rc ] && muttrc="~/.${muttcmd}/${muttcmd}rc"
++ [ -f ~/.${muttcmd}rc ] && muttrc="~/.${muttcmd}rc"
+ [ -z "$muttrc" ] && return 0
++
+ conffiles=( $(eval _muttconffiles $muttrc $muttrc) )
+ aliases=( $( sed -rn 's|^alias[[:space:]]+([^[:space:]]+).*$|\1|p' \
+ $(eval echo ${conffiles[@]}) ) )
+@@ -4594,7 +4595,7 @@
+ local -a queryresults
+ cur=${COMP_WORDS[COMP_CWORD]}
+
+- querycmd="$( mutt -Q query_command | sed -r 's|^query_command=\"(.*)\"$|\1|; s|%s|'$cur'|' )"
++ querycmd="$( $muttcmd -Q query_command | sed -r 's|^query_command=\"(.*)\"$|\1|; s|%s|'$cur'|' )"
+ if [ -z "$cur" -o -z "$querycmd" ]; then
+ queryresults=()
+ else
+@@ -4616,7 +4617,7 @@
+ # This is currently not working so well. Perhaps this function should
+ # just call _filedir() for the moment.
+ if [[ $cur == [=+]* ]]; then
+- folder="$( mutt -Q folder | sed -r 's|^folder=\"(.*)\"$|\1|' )"
++ folder="$( $muttcmd -Q folder | sed -r 's|^folder=\"(.*)\"$|\1|' )"
+ : folder:=~/Mail
+
+ # Match any file in $folder beginning with $cur
+@@ -4625,7 +4626,7 @@
+ COMPREPLY=( ${COMPREPLY[@]#$folder/} )
+ return 0
+ elif [ "$cur" == !* ]; then
+- spoolfile="$( mutt -Q spoolfile | sed -r 's|^spoolfile=\"(.*)\"$|\1|' )"
++ spoolfile="$( $muttcmd -Q spoolfile | sed -r 's|^spoolfile=\"(.*)\"$|\1|' )"
+ [ ! -z "$spoolfile" ] && eval cur="${cur/^!/$spoolfile}";
+ fi
+ _filedir
+@@ -4640,6 +4641,8 @@
+ prev=${COMP_WORDS[COMP_CWORD-1]}
+
+ COMPREPLY=()
++
++ [ ${COMP_WORDS[0]} == muttng ] && muttcmd="muttng" || muttcmd="mutt"
+
+ case "$cur" in
+ -*)
+@@ -4670,7 +4673,7 @@
+ esac
+
+ }
+-complete -F _mutt $default $filenames mutt
++complete -F _mutt $default $filenames mutt muttng
+ }
+
+ _configure_func()
diff --git a/app-shells/bash-completion/files/20050121/06_all_tar.diff b/app-shells/bash-completion/files/20050121/06_all_tar.diff
new file mode 100644
index 000000000000..2615bddaadf5
--- /dev/null
+++ b/app-shells/bash-completion/files/20050121/06_all_tar.diff
@@ -0,0 +1,13 @@
+--- bash_completion.orig/bash_completion 2005-03-28 23:32:38.000000000 -0500
++++ bash_completion/bash_completion 2005-03-28 23:42:13.000000000 -0500
+@@ -2773,8 +2773,8 @@
+ return 0
+ ;;
+ +([^IZzjy])f)
+- ext='tar'
+- regex=$ext
++ ext='t?(ar?(.))@(gz|Z|bz?(2))'
++ regex='t\(ar?(\.)\)\(gz\|Z\|bz2\?\)'
+ ;;
+ *[Zz]*f)
+ ext='t?(ar.)@(gz|Z)'
diff --git a/app-shells/bash-completion/files/20050121/07_all_find.diff b/app-shells/bash-completion/files/20050121/07_all_find.diff
new file mode 100644
index 000000000000..84ce8d3fb86b
--- /dev/null
+++ b/app-shells/bash-completion/files/20050121/07_all_find.diff
@@ -0,0 +1,23 @@
+--- bash_completion.orig/bash_completion 2005-04-06 12:19:18.102705608 +0100
++++ bash_completion/bash_completion 2005-04-06 12:23:24.310276368 +0100
+@@ -925,8 +925,8 @@
+ _command
+ return 0
+ ;;
+- -[acm]min|-[acm]time|-?(i)?(l)name|-inum|-?(i)path|-?(i)regex| \
+- -links|-perm|-size|-used|-printf)
++ -[acm]min|-[acm]time|-?(i)?(l)?(whole)name|-inum|-?(i)path| \
++ -?(i)regex|-links|-perm|-size|-used|-printf)
+ # do nothing, just wait for a parameter to be given
+ return 0
+ ;;
+@@ -953,7 +953,8 @@
+ -links -lname -mmin -mtime -name -newer -nouser \
+ -nogroup -perm -regex -size -true -type -uid -used \
+ -user -xtype -exec -fls -fprint -fprint0 -fprintf -ok \
+- -print -print0 -printf -prune -ls' -- $cur ) )
++ -print -print0 -printf -prune -ls -wholename \
++ -iwholename' -- $cur ) )
+
+ # this removes any options from the list of completions that have
+ # already been specified somewhere on the command line, as long as
diff --git a/app-shells/bash-completion/files/20050121/08_all_lvm.diff b/app-shells/bash-completion/files/20050121/08_all_lvm.diff
new file mode 100644
index 000000000000..35c3d068392b
--- /dev/null
+++ b/app-shells/bash-completion/files/20050121/08_all_lvm.diff
@@ -0,0 +1,29 @@
+--- bash_completion.orig/bash_completion 2005-04-20 09:19:28.000000000 -0400
++++ bash_completion/bash_completion 2005-04-20 09:52:28.000000000 -0400
+@@ -6755,20 +6755,20 @@
+ have lvm && {
+ _volumegroups()
+ {
+- COMPREPLY=( $( vgscan | \
+- awk -F'"' '/Found/ {if ($2 ~ /^'$cur'/) print $2}' ) )
++ COMPREPLY=( $(compgen -W "$( vgscan 2>/dev/null | \
++ sed -n -e 's|.*Found.*"\(.*\)".*$|\1|p' )" -- $cur ) )
+ }
+
+ _physicalvolumes()
+ {
+- COMPREPLY=( $( pvscan | \
+- awk '/PV/ {if ($2 ~ /^'$cur'/) print $2}' ) )
++ COMPREPLY=( $(compgen -W "$( pvscan 2>/dev/null | \
++ sed -n -e 's|^.*PV \(.*\) VG.*$|\1|p' )" -- $cur ) )
+ }
+
+ _logicalvolumes()
+ {
+- COMPREPLY=( $( lvscan 2>/dev/null | \
+- awk -F"'" '{if ($2 ~ /^'$cur'/) print $2}' ) )
++ COMPREPLY=( $(compgen -W "$( lvscan 2>/dev/null | \
++ sed -n -e "s|^.*'\(.*\)'.*$|\1|p" )" -- $cur ) )
+ }
+
+ _units()