- _insmod(): Mandrake Linux has gzipped modules
- add comments to make Emacs go into shell-script-mode upon editing
This commit is contained in:
parent
ab3645b2c0
commit
3eafaed8e1
@ -1,6 +1,6 @@
|
|||||||
# bash_completion - some programmable completion functions for bash 2.05a
|
# bash_completion - some programmable completion functions for bash 2.05a
|
||||||
#
|
#
|
||||||
# $Id: bash_completion,v 1.231 2002/03/28 23:41:44 ianmacd Exp $
|
# $Id: bash_completion,v 1.232 2002/03/29 03:35:42 ianmacd Exp $
|
||||||
#
|
#
|
||||||
# Copyright (C) Ian Macdonald <ian@caliban.org>
|
# Copyright (C) Ian Macdonald <ian@caliban.org>
|
||||||
#
|
#
|
||||||
@ -381,7 +381,7 @@ _insmod()
|
|||||||
elif [ -r $modpath -a -x $modpath ]; then
|
elif [ -r $modpath -a -x $modpath ]; then
|
||||||
# do module name completion
|
# do module name completion
|
||||||
COMPREPLY=( $( \ls -R $modpath | \
|
COMPREPLY=( $( \ls -R $modpath | \
|
||||||
sed -ne 's|^\('$cur'.*\)\.o$|\1|p') )
|
sed -ne 's/^\('$cur'.*\)\.o\(\|.gz\)$/\1/p') )
|
||||||
else
|
else
|
||||||
_filedir
|
_filedir
|
||||||
fi
|
fi
|
||||||
@ -2581,3 +2581,7 @@ fi
|
|||||||
&& . ~/.bash_completion
|
&& . ~/.bash_completion
|
||||||
unset -f have
|
unset -f have
|
||||||
unset OS RELEASE have i
|
unset OS RELEASE have i
|
||||||
|
|
||||||
|
### Local Variables:
|
||||||
|
### mode: shell-script
|
||||||
|
### End:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user