--- genlop.bash-completion 2004-11-22 19:31:30.000000000 +0100 +++ genlop.bash-completion-new 2005-07-21 23:40:52.000000000 +0200 @@ -16,7 +16,8 @@ origdir="${PWD}" COMPREPLY=() - portagedir=/usr/portage + portagedir="$( (source /etc/make.conf; echo ${PORTDIR}) )" + if [ ${portagedir} = "" ]; then portagedir=/usr/portage; fi cur="${COMP_WORDS[COMP_CWORD]}" cd "${portagedir}"