Changeset 72 for confman/bash_completions
- Timestamp:
- 04/14/2006 13:27:23 (6 years ago)
- File:
-
- 1 edited
-
confman/bash_completions (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
confman/bash_completions
r71 r72 1 #! /bin/bash 2 1 3 _confman() 2 4 { 3 5 local cur prev cmds twoback cmds fd_cmds mod_cmds chkpt_cmds 4 CONFMAN="/usr/local/rescomp/sbin/confman"6 CONFMAN="/usr/local/rescomp/sbin/confman" 5 7 COMPREPLY=() 6 8 cur="${COMP_WORDS[COMP_CWORD]}" … … 31 33 elif [ `expr "${mod_cmds}" : ".*\(${prev}\).*"` ] ; then 32 34 CONFDIR="${REPO_PATH:-$HOME/src}/conf" 33 local modules=$( ls $CONFDIR | grep -v checkpoints|tr '\n' ' ')35 local modules=$(/bin/ls $CONFDIR | grep -v checkpoints|tr '\n' ' ') 34 36 COMPREPLY=($(compgen -W "${modules}" -- ${cur})) 35 37 return 0 … … 64 66 return 0 65 67 } 68 66 69 complete -F _confman confman 70
Note: See TracChangeset
for help on using the changeset viewer.
