[Lunar-commits] <moonbase> Removing completion scripts now replaced by bash-completion module

Stefan Wold ratler at lunar-linux.org
Fri Apr 6 12:45:51 CEST 2012


commit 05e4014ac29b4c9f01fdc54b87f4fdbf2865984f
Author: Stefan Wold <ratler at lunar-linux.org>
Date:   Fri Apr 6 12:45:51 2012 +0200

    Removing completion scripts now replaced by bash-completion module
---
 crypto/openssh/profile.d/ssh-completion.rc       |   13 ---------
 devel/cvs/profile.d/cvs-completion.rc            |   31 ---------------------
 devel/make/profile.d/make-completion.rc          |   18 ------------
 kernel/modutils/profile.d/modutils-completion.rc |   32 ----------------------
 4 files changed, 94 deletions(-)

diff --git a/crypto/openssh/profile.d/ssh-completion.rc b/crypto/openssh/profile.d/ssh-completion.rc
deleted file mode 100644
index 4202beb..0000000
--- a/crypto/openssh/profile.d/ssh-completion.rc
+++ /dev/null
@@ -1,13 +0,0 @@
-# Turn on extended globbing
-shopt -s extglob
-
-# ssh hostname completion
-
-_ssh ()
-{
-  local cur
-  cur=${COMP_WORDS[COMP_CWORD]}
-  COMPREPLY=( $( compgen -W "`cat $HOME/.ssh/known_hosts | cut -d' '  -f1 | sed 's:,: :g'`" $cur ) )
-}
-complete -F _ssh ssh
-
diff --git a/devel/cvs/profile.d/cvs-completion.rc b/devel/cvs/profile.d/cvs-completion.rc
deleted file mode 100644
index 7a3b090..0000000
--- a/devel/cvs/profile.d/cvs-completion.rc
+++ /dev/null
@@ -1,31 +0,0 @@
-#
-# More bash 2.04 completions
-#
-# From: ian at linuxcare.com (Ian Macdonald)
-#
-
-# Turn on extended globbing
-shopt -s extglob
-
-# cvs(1) completion
-#
-_cvs ()
-{
-	local cur prev
-
-        COMPREPLY=()
-        cur=${COMP_WORDS[COMP_CWORD]}
-        prev=${COMP_WORDS[COMP_CWORD-1]}
-
-	if [ $COMP_CWORD -eq 1 ] || [ "${prev:0:1}" = "-" ]; then
-		COMPREPLY=( $( compgen -W 'add admin annotate checkout commit \
-		diff edit editors export history import init log login logout \
-		ls pserver rannotate rdiff release remove rlog rls rtag \
-		server status tag unedit update version watch watchers' $cur ))
-	else
-		COMPREPLY=( $( compgen -f $cur ))
-	fi
-	return 0
-}
-complete -F _cvs cvs
-
diff --git a/devel/make/profile.d/make-completion.rc b/devel/make/profile.d/make-completion.rc
deleted file mode 100644
index 6e718d6..0000000
--- a/devel/make/profile.d/make-completion.rc
+++ /dev/null
@@ -1,18 +0,0 @@
-
-#
-# simple tab completion for make! =^)
-#
-
-# Turn on extended globbing
-shopt -s extglob
-
-_make ()
-{
-	local cur
-	cur=${COMP_WORDS[COMP_CWORD]}
-	COMPREPLY=( $( compgen -W "`grep ^[a-zA-Z0-9_]*: [mM]akefile | cut -d: -f1`" $cur ))
-
-}
-
-complete -F _make make
-
diff --git a/kernel/modutils/profile.d/modutils-completion.rc b/kernel/modutils/profile.d/modutils-completion.rc
deleted file mode 100644
index 06edab7..0000000
--- a/kernel/modutils/profile.d/modutils-completion.rc
+++ /dev/null
@@ -1,32 +0,0 @@
-# Per kernel running:
-# this is 2.4 code. If 2.4 is not running, just quit
-
-UNAMER=`uname -r`
-
-case $UNAMER in 
-	2.4.* ) ;;
-	* ) return 0;;
-esac
-
-# Turn on extended globbing
-shopt -s extglob
-
-_modprobe ()
-{
-	local cur
-	cur=${COMP_WORDS[COMP_CWORD]}
-	COMPREPLY=( $( compgen -W "`find /lib/modules/${UNAMER}/kernel/ -type f -name '*.o' -exec basename {} \; | sed 's:.o$::'`" $cur ))
-}
-complete -F _modprobe modprobe insmod
-
-_rmmod ()
-{
-	local cur
-	cur=${COMP_WORDS[COMP_CWORD]}
-	COMPREPLY=( $( compgen -W "`cat /proc/modules | awk '{print $1}'`" $cur ))
-}
-
-complete -F _rmmod rmmod
-
-# Not only does it set PATH, but also from here the mans set their search path, to the mans are automagically added too.
-export PATH=$PATH:/lib/modutils/sbin/


More information about the Lunar-commits mailing list