summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2010-03-30 20:34:35 +0300
committerVille Skyttä <ville.skytta@iki.fi>2010-03-30 20:34:35 +0300
commit0c2476350628cd7fca117d591eed13708f949062 (patch)
treecfba3ef91cd0f74a5177973606e5b3d601f260d6
parent0d8e37c7aab1775889cec92c33e58df8a74af675 (diff)
downloadmock-0c2476350628cd7fca117d591eed13708f949062.tar.gz
mock-0c2476350628cd7fca117d591eed13708f949062.tar.xz
mock-0c2476350628cd7fca117d591eed13708f949062.zip
Trivial root completion cleanup.
-rw-r--r--etc/bash_completion.d/mock.bash3
1 files changed, 1 insertions, 2 deletions
diff --git a/etc/bash_completion.d/mock.bash b/etc/bash_completion.d/mock.bash
index 12afcce..599a011 100644
--- a/etc/bash_completion.d/mock.bash
+++ b/etc/bash_completion.d/mock.bash
@@ -25,8 +25,7 @@ _mock()
;;
-r|--root)
COMPREPLY=( $( compgen -W "$( command ls $cfgdir 2>/dev/null | \
- sed -e '/^site-defaults\.cfg$/d' -ne 's/\.cfg$//p' )" \
- -- "$2" ) )
+ sed -ne 's/\.cfg$//p' )" -X site-defaults -- "$2" ) )
return 0
;;
--configdir|--resultdir)