From 911f3859c8b0ca163323a991fa08a39b3477b492 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Sat, 28 Nov 2009 20:45:45 +0200 Subject: Turn on -o filenames in _filedir() if compopt is available. --- bash_completion | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bash_completion') diff --git a/bash_completion b/bash_completion index a29138cc..12a4f3fb 100644 --- a/bash_completion +++ b/bash_completion @@ -456,6 +456,8 @@ _filedir() fi COMPREPLY=( "${COMPREPLY[@]}" "${toks[@]}" ) + [ ${#COMPREPLY[@]} -ne 0 ] && type compopt &>/dev/null && \ + compopt -o filenames } # _filedir() -- cgit v1.2.1