bash-completion/rm-completion-smart-boo958462.patch

25 lines
1.0 KiB
Diff

Bug boo#958462
Allow the smart bash builtin completion if normal completion scripting
does not return anything.
---
bash_completion | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- bash_completion
+++ bash_completion 2015-12-18 09:17:57.865910263 +0000
@@ -1857,10 +1857,11 @@ _longopt()
complete -F _longopt -o filenames a2ps awk base64 bash bc bison cat colordiff cp csplit \
cut date df diff dir du enscript expand fmt fold gperf \
grep grub head indent irb ld ldd less ln m4 md5sum mkdir mkfifo mknod \
- mv nl nm objcopy objdump od paste pr ptx readelf rm rmdir \
+ mv nl nm objcopy objdump od paste pr ptx readelf \
sed sha{,1,224,256,384,512}sum shar sort split strip sum tac tail tee \
texindex touch tr unexpand uniq vdir wc who
complete -F _longopt -o default env netstat seq uname units
+complete -F _longopt -o bashdefault -o default -o filenames -o nospace rm rmdir
if typeset -F _ls_ &> /dev/null; then
complete -o bashdefault -o default -o filenames -o nospace -F _ls_ ls ll la l ls-l lf