Changeset 80


Ignore:
Timestamp:
04/15/2006 20:05:12 (6 years ago)
Author:
yontege
Message:

Now sourcing confman conf and rc for determing module list.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • confman/bash_completions

    r79 r80  
    44        local cur prev cmds twoback cmds fd_cmds mod_cmds chkpt_cmds 
    55        CONFMAN="/usr/local/rescomp/sbin/confman" 
     6        CONFMAN_CONF="/usr/local/rescomp/etc/confman.conf" 
     7        CONFMAN_RC="~/.confmanrc" 
     8        [ -e ${CONFMAN_CONF} ] && source ${CONFMAN_CONF} 
     9        [ -e ${CONFMAN_RC} ] && source ${CONFMAN_RC} 
    610        COMPREPLY=() 
    711        cur="${COMP_WORDS[COMP_CWORD]}" 
     
    3337            return 0 
    3438        elif [ `expr "${mod_cmds}" : ".*\(${prev}\).*"` ] ; then 
    35                 CONFDIR="${REPO_PATH:-$HOME/src}/conf" 
    36                 local modules=$(/bin/ls $CONFDIR | grep -v checkpoints|tr '\n' ' ') 
     39                local modules=$(grep -vE '^#|^$' ${RECIPE_PATH} | tr '\n' ' ') 
    3740                COMPREPLY=($(compgen -W "${modules}" -- ${cur})) 
    3841                return 0 
Note: See TracChangeset for help on using the changeset viewer.