- make slay complete on users and don't redefine su completion
This commit is contained in:
parent
c027a19270
commit
c28a897650
@ -1,6 +1,6 @@
|
||||
# bash_completion - some programmable completion functions for bash 2.05b
|
||||
#
|
||||
# $Id: bash_completion,v 1.529 2003/02/09 09:14:09 ianmacd Exp $
|
||||
# $Id: bash_completion,v 1.530 2003/02/10 07:55:22 ianmacd Exp $
|
||||
#
|
||||
# Copyright (C) Ian Macdonald <ian@caliban.org>
|
||||
#
|
||||
@ -83,7 +83,7 @@ complete -f -X '!*.@(?(x)htm?(l))' netscape mozilla lynx opera w3m galeon curl d
|
||||
# start of section containing compspecs that can be handled within bash
|
||||
|
||||
# user commands see only users
|
||||
complete -u su usermod userdel passwd chage write chfn groups
|
||||
complete -u su usermod userdel passwd chage write chfn groups slay
|
||||
|
||||
# group commands see only groups
|
||||
[ ${BASH_VERSINFO[1]} '>' 04 ] &&
|
||||
@ -2914,7 +2914,7 @@ _longopt()
|
||||
for i in a2ps autoconf automake bc gprof ld nm objcopy objdump readelf strip \
|
||||
bison cpio diff patch enscript cp df dir du ln ls mkfifo mknod mv rm \
|
||||
touch vdir xargs awk gperf grep grub indent less m4 sed shar date \
|
||||
env seq su tee uname who texindex cat csplit cut expand fmt fold head \
|
||||
env seq tee uname who texindex cat csplit cut expand fmt fold head \
|
||||
md5sum nl od paste pr ptx sha1sum sort split tac tail tr unexpand \
|
||||
uniq wc units wget ldd bash id info irb mkdir rmdir netstat; do
|
||||
have $i && complete -F _longopt $filenames $i
|
||||
|
Loading…
x
Reference in New Issue
Block a user