- don't append spaces after directories when doing mount completion

- allow default completion if there are no matches during make completion
This commit is contained in:
ianmacd 2003-02-07 17:04:35 +00:00
parent 9b51bb2b7e
commit b81d694e5c

View File

@ -1,6 +1,6 @@
# bash_completion - some programmable completion functions for bash 2.05b
#
# $Id: bash_completion,v 1.526 2003/02/06 19:08:16 ianmacd Exp $
# $Id: bash_completion,v 1.527 2003/02/07 18:04:35 ianmacd Exp $
#
# Copyright (C) Ian Macdonald <ian@caliban.org>
#
@ -480,7 +480,7 @@ _mount()
return 0
}
complete -F _mount $default mount
complete -F _mount $default $filenames mount
# Linux rmmod(8) completion. This completes on a list of all currently
# installed kernel modules.
@ -2183,7 +2183,7 @@ _make()
return 0
}
[ -n "${have:-}" ] && complete -F _make -X '+($*|*.[ch])' $filenames make gmake pmake
[ -n "${have:-}" ] && complete -F _make -X '+($*|*.[ch])' $default $filenames make gmake pmake
#
# This completes on a list of all available service scripts for the