diff options
Diffstat (limited to 'app-text/tree/files/tree.bashcomp')
-rw-r--r-- | app-text/tree/files/tree.bashcomp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app-text/tree/files/tree.bashcomp b/app-text/tree/files/tree.bashcomp index b5da3ee5c6bb..5c81b10158ec 100644 --- a/app-text/tree/files/tree.bashcomp +++ b/app-text/tree/files/tree.bashcomp @@ -1,6 +1,6 @@ -# Copyright 1999-2005 Gentoo Foundation +# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/tree/files/tree.bashcomp,v 1.1 2005/08/30 14:15:49 ka0ttic Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/tree/files/tree.bashcomp,v 1.2 2012/05/27 23:17:52 mr_bones_ Exp $ # bash command-line completion for tree # Author: Aaron Walker <ka0ttic@gentoo.org> @@ -15,7 +15,7 @@ _tree() { --dirsfirst --charset --help" if [[ ${cur} == -* ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 fi @@ -23,10 +23,10 @@ _tree() { -L|-P|-I|-H|-T|--charset|--help) ;; -o) - COMPREPLY=( $(compgen -f -- ${cur}) ) + _filedir ;; *) - COMPREPLY=( $(compgen -d -- ${cur}) ) + _filedir -d ;; esac } |