Adding a new convenience alias and fixing auto-complete for onos-create-app.
Change-Id: Iad76a2293b5b87176033184d23634d83f21370eb
Showing
2 changed files
with
8 additions
and
3 deletions
... | @@ -140,11 +140,12 @@ function cells { | ... | @@ -140,11 +140,12 @@ function cells { |
140 | done | 140 | done |
141 | } | 141 | } |
142 | 142 | ||
143 | -# Miscellaneous | 143 | +# Find a process by regex |
144 | function spy { | 144 | function spy { |
145 | ps -ef | egrep "$@" | grep -v egrep | 145 | ps -ef | egrep "$@" | grep -v egrep |
146 | } | 146 | } |
147 | 147 | ||
148 | +# Kill a process by regex | ||
148 | function nuke { | 149 | function nuke { |
149 | spy "$@" | cut -c7-11 | xargs kill | 150 | spy "$@" | cut -c7-11 | xargs kill |
150 | } | 151 | } |
... | @@ -186,5 +187,9 @@ function vicell { | ... | @@ -186,5 +187,9 @@ function vicell { |
186 | ($apply) && cell ${cdf} | 187 | ($apply) && cell ${cdf} |
187 | } | 188 | } |
188 | 189 | ||
189 | -# autocomplete for certain utilities | 190 | +# Autocomplete for certain utilities |
190 | . ${ONOS_ROOT}/tools/test/bin/ogroup-opts | 191 | . ${ONOS_ROOT}/tools/test/bin/ogroup-opts |
192 | + | ||
193 | + | ||
194 | +# Load AT&T MPLS topo GEO data | ||
195 | +alias atttopo='onos-topo-cfg $OCI $ONOS_ROOT/tools/test/topos/attmpls.json' | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -51,7 +51,7 @@ complete -F _cell-opts cell vicell | ... | @@ -51,7 +51,7 @@ complete -F _cell-opts cell vicell |
51 | function _ocapp-opts () { | 51 | function _ocapp-opts () { |
52 | local cur=${COMP_WORDS[COMP_CWORD]} | 52 | local cur=${COMP_WORDS[COMP_CWORD]} |
53 | if [ $COMP_CWORD -eq 1 ]; then | 53 | if [ $COMP_CWORD -eq 1 ]; then |
54 | - COMPREPLY=( $( compgen -W "bundle ui cli" -- $cur ) ) | 54 | + COMPREPLY=( $( compgen -W "app bundle ui uitable uitopo cli" -- $cur ) ) |
55 | fi | 55 | fi |
56 | } | 56 | } |
57 | 57 | ... | ... |
-
Please register or login to post a comment