From 08e4e12865836424ab48afe268f1529247361cdd Mon Sep 17 00:00:00 2001 From: John Southworth Date: Fri, 13 May 2011 11:52:21 -0500 Subject: Only show directories in top level completion because installed systems have more in their /boot directories --- etc/bash_completion.d/vyatta-op | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc') diff --git a/etc/bash_completion.d/vyatta-op b/etc/bash_completion.d/vyatta-op index a1b7097..7a33563 100644 --- a/etc/bash_completion.d/vyatta-op +++ b/etc/bash_completion.d/vyatta-op @@ -464,7 +464,7 @@ _vyatta_image_path_complete() return 0; fi if [[ ${cur} == "" ]]; then - reply=( $(compgen -f /live/image/boot/ | grep -v grub) ) + reply=( $(compgen -d /live/image/boot/ | grep -v grub) ) for i in `seq 0 $[${#reply[@]}-1]`; do file=${reply[$i]} reply[$i]=${file/#\/live\/image\/boot\//} -- cgit v1.2.3