diff options
author | John Southworth <john.southworth@vyatta.com> | 2011-05-13 11:52:21 -0500 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2011-05-13 11:52:21 -0500 |
commit | 08e4e12865836424ab48afe268f1529247361cdd (patch) | |
tree | c12a4553890167f5425c30dd6eb3cc6837b75b9d /etc | |
parent | dcdf47ad0fa849df891771c0c11485015cfa330b (diff) | |
download | vyatta-op-08e4e12865836424ab48afe268f1529247361cdd.tar.gz vyatta-op-08e4e12865836424ab48afe268f1529247361cdd.zip |
Only show directories in top level completion because installed systems have more in their /boot directories
Diffstat (limited to 'etc')
-rw-r--r-- | etc/bash_completion.d/vyatta-op | 2 |
1 files changed, 1 insertions, 1 deletions
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\//} |