Adding a new convenience alias and fixing auto-complete for onos-create-app.
Change-Id: Iad76a2293b5b87176033184d23634d83f21370eb
diff --git a/tools/dev/bash_profile b/tools/dev/bash_profile
index b8244a7..6bab610 100644
--- a/tools/dev/bash_profile
+++ b/tools/dev/bash_profile
@@ -140,11 +140,12 @@
done
}
-# Miscellaneous
+# Find a process by regex
function spy {
ps -ef | egrep "$@" | grep -v egrep
}
+# Kill a process by regex
function nuke {
spy "$@" | cut -c7-11 | xargs kill
}
@@ -186,5 +187,9 @@
($apply) && cell ${cdf}
}
-# autocomplete for certain utilities
+# Autocomplete for certain utilities
. ${ONOS_ROOT}/tools/test/bin/ogroup-opts
+
+
+# Load AT&T MPLS topo GEO data
+alias atttopo='onos-topo-cfg $OCI $ONOS_ROOT/tools/test/topos/attmpls.json'
\ No newline at end of file
diff --git a/tools/test/bin/ogroup-opts b/tools/test/bin/ogroup-opts
index f02b7a8..eec2f22 100644
--- a/tools/test/bin/ogroup-opts
+++ b/tools/test/bin/ogroup-opts
@@ -51,7 +51,7 @@
function _ocapp-opts () {
local cur=${COMP_WORDS[COMP_CWORD]}
if [ $COMP_CWORD -eq 1 ]; then
- COMPREPLY=( $( compgen -W "bundle ui cli" -- $cur ) )
+ COMPREPLY=( $( compgen -W "app bundle ui uitable uitopo cli" -- $cur ) )
fi
}